我的wap网页,怎么以pc去请求M3U8链接。贴代码如下,麻烦大神改一下回复给我。
目的是我采集了别人的M3U8链接,但是他的链接pc可以播放,H5播放不了,我要把我的wap代码,改一下冒充为pc去请求播放,代码里面的M3U8为乱输入的,只做示例
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>videojs-contrib-hls embed</title>
<link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
<script src="https://unpkg.com/video.js/dist/video.js"></script>
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
</head>
<body>
<h1>Video.js Example Embed</h1>
<video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="100%" height="auto"
data-setup='{}'>
<source src="https://aiy.zx69t.com/5255525ft/0/14cccec1363=blob_3815fcb287564fe399e928bindex.m3u8" type="application/x-mpegURL">
</video>
<script>
</script>
</body>
</html>