2025-02-14 12:26:29 +08:00
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<title id="pageTitle">视频播放</title>
|
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2025-02-14 14:11:23 +08:00
|
|
|
|
<script src="/artplayer.js"></script>
|
2025-02-14 12:42:56 +08:00
|
|
|
|
<!-- 引入 artplayerPluginChapter 插件 -->
|
2025-02-14 14:11:23 +08:00
|
|
|
|
<script src="/artplayer-plugin-chapter.js"></script>
|
2025-02-14 12:42:56 +08:00
|
|
|
|
<link rel="stylesheet" href="/videos/video.css">
|
2025-02-14 12:26:29 +08:00
|
|
|
|
<script>
|
|
|
|
|
|
// 视频标题、链接和说明
|
|
|
|
|
|
var videoTitle = "MC统一认证设置教程";
|
|
|
|
|
|
var videoUrl = "./2025-02-14-11-09-11_Notepad3_D0VfI8Cj2L.mp4";
|
2025-02-14 12:41:24 +08:00
|
|
|
|
var videoDescription = "此教程将演示如何在PCL2中设置MC统一认证登录\n注册相关信息:http://o.nmgjg.com.cn/videos/25/02/knzB8-MC/txt.txt";
|
2025-02-14 12:34:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-02-14 12:26:29 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="header">
|
|
|
|
|
|
<h1 id="videoTitle"></h1>
|
|
|
|
|
|
<div id="videoDescription" class="description"></div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<button onclick="downloadVideo()">下载</button>
|
|
|
|
|
|
<button class="back-button" onclick="window.history.back()">返回</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="artplayer-app"></div>
|
2025-02-14 12:34:30 +08:00
|
|
|
|
<script>
|
|
|
|
|
|
document.getElementById('videoTitle').innerText = videoTitle;
|
|
|
|
|
|
document.getElementById('pageTitle').innerText = videoTitle + " - 播放";
|
|
|
|
|
|
document.getElementById('videoDescription').innerText = videoDescription;
|
|
|
|
|
|
|
|
|
|
|
|
var art = new Artplayer({
|
|
|
|
|
|
container: '.artplayer-app',
|
|
|
|
|
|
url: videoUrl,
|
|
|
|
|
|
autoSize: true,
|
|
|
|
|
|
fullscreen: true,
|
|
|
|
|
|
fullscreenWeb: true,
|
|
|
|
|
|
miniProgressBar: true,
|
|
|
|
|
|
autoOrientation: true,
|
|
|
|
|
|
autoplay: false, // 禁用自动播放
|
|
|
|
|
|
muted: false, // 不自动静音
|
|
|
|
|
|
setting: true,
|
|
|
|
|
|
aspectRatio: true,
|
|
|
|
|
|
fullscreen: true,
|
|
|
|
|
|
lang: 'zh-cn',
|
|
|
|
|
|
fastForward: true,
|
|
|
|
|
|
|
|
|
|
|
|
plugins: [
|
|
|
|
|
|
artplayerPluginChapter({
|
|
|
|
|
|
chapters: [
|
2025-02-14 12:38:39 +08:00
|
|
|
|
{ start: 0, end: 27, title: '注册并登录' },
|
2025-02-14 14:13:45 +08:00
|
|
|
|
{ start: 27, end: Infinity, title: '配置启动器' }
|
2025-02-14 12:34:30 +08:00
|
|
|
|
]
|
|
|
|
|
|
}),
|
|
|
|
|
|
],
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function downloadVideo() {
|
|
|
|
|
|
fetch(videoUrl)
|
|
|
|
|
|
.then(response => response.blob())
|
|
|
|
|
|
.then(blob => {
|
|
|
|
|
|
const link = document.createElement('a');
|
|
|
|
|
|
link.href = URL.createObjectURL(blob);
|
|
|
|
|
|
link.download = videoTitle + '.mp4'; // 设置下载文件名
|
|
|
|
|
|
document.body.appendChild(link);
|
|
|
|
|
|
link.click();
|
|
|
|
|
|
document.body.removeChild(link);
|
|
|
|
|
|
URL.revokeObjectURL(link.href);
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch(error => console.error('Error downloading the video:', error));
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
2025-02-14 12:26:29 +08:00
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|
|
</html>
|