<!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>模拟vip视频解析</title>
</head>
<body>
<input type="text" id="url" style="width:400px;" placeholder="输入你要解析的视频网址">
<button id="btn">解析</button>
<div>
<iframe width="100%" height=1080px name="myIfram"></iframe>
</div>
</body>
</html>
<script>
let url=document.querySelector("input");
var btn=document.getElementById("btn");
var window=document.querySelector("iframe");
btn.onclick=()=>{
var qq=new URL("https://vip.parwix.com:4433/player/?url="+url.value);
var window=document.createElement("div");
window.innerHTML=`
<iframe src=${qq}" width="100%" height="600px" name="myIfram"></iframe>
`
document.body.appendChild(window);
var div=document.querySelectorAll("div");
if(div.length>1){
document.body.removeChild(div[0]);
}
}
</script>
调用的视频解析接口,本地能解析出来,但是放到服务器上就不行了,会显示解析失败
video
306 views