看电影需要 VIP 用接口显得麻烦就写了个网页
效果图
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>解析视频</title>
<style>
* {
margin: 0;
padding: 0;
}
html,body {
height: 100%;
}
body {
font-size: 20px;
}
.title {
height: 60px;
background-color: #007bff;
color: #ffffff;
box-shadow: 0 2px 2px #dddddd;
padding: 0 5%;
display: flex;
align-items: center;
}
.info {
padding: 20px 5% 0 5%;
font-weight: 200;
font-size: 18px;
}
.function {
padding: 10px 0;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.function input {
border: none;
outline: none;
border: 1px solid #dddddd;
padding: 10px;
border-radius: 2px;
}
.function span {
margin-left: 10px;
padding: 10px;
user-select: none;
cursor: pointer;
}
.video {
}
.video iframe {
width: 100%;
height: 500px;
}
</style>
</head>
<body>
<div class="title">
<span>解析视频</span>
</div>
<!-- 原创申明 虽然是一个简单的网页,但是想法也是原创可以保护的 原创 : XLJ -->
<!-- 博客 : xlj0.com -->
<div class="info">
<span>输入播放页面的链接地址</span>
<div class="function">
<input type="text" id="inputInfo">
<span class="button" id="buttonFunction">解析</span>
</div>
<div class="video">
<iframe src="" frameborder="0" id="video"></iframe>
</div>
</div>
<script>
// 绑定标签
var inputInfo = document.getElementById('inputInfo');
var buttonFunction = document.getElementById('buttonFunction');
var video = document.getElementById('video');
// 实现点击按钮加载视频地址
buttonFunction.onclick = function () {
video.src = 'https://www.nxflv.com/?url=' + inputInfo.value;
}
</script>
</body>
</html>
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。