引用代码:
<!--
* @Author : 华晟三理科技
* @Url : hs3l.com
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>视频</title>
<link href="https://api.hs3l.com/videos/css/muziqingcss.css" rel="stylesheet">
</head>
<body>
<div class="video-container">
<video id="videoPlayer" muted playsinline>
<source id="videoSource" type="video/mp4">
</video>
<button class="play-button" id="playButton"></button>
<div class="volume-control">
<input id="volumeSlider" class="volume-slider" type="range" min="0" max="1" step="0.01" value="0">
</div>
<button class="next-button" id="nextButton">下一个</button>
</div>
<script>
document.addEventListener('dragstart', (e) => { e.preventDefault(); });
const videoPlayer = document.getElementById('videoPlayer');
const playButton = document.getElementById('playButton');
const nextButton = document.getElementById('nextButton');
const volumeSlider = document.getElementById('volumeSlider');
const videoSource = document.getElementById('videoSource');
const apiKey = "d5g15b4d2s"; //自己随意输入key 最少8位 最多12位 a-z 0-9 不含符号 不行的话多换几次key
const domain = "www.330b.com"; //你的域名;务必填写自己的,二级域名调用api,就填写二级域名,可以不带http(s)://
const baseUrl = "https://api.hs3l.com/videos/open.php";
</script>
<script src="https://api.hs3l.com/videos/js/open.js"></script>
</body>
</html>