最新M3U8视频资源去广告json解析接口源码修复版本 :- 支持IP授权访问控制- 支持解析基于文件流注入的广告- 对已经去广告的m3u8进行文件保存,相同链接直接从保存的文件获取- 提供友好的错误处理和状态码返回

可以开启IP授权,填写自己的服务器IP,支持多个,防止被别人盗用接口,本地调试把本地IP也填上
宝塔需要设置跨域访问才可以正常播放,设置教程可以搜下网络
APP链接特征填写:.m3u8 (注意前面的点),其他APP理论上相同….
调用方法:域名/?url=示例:http://www.xxx.com/m3u8/?url=
注意宝塔需要设置伪静态才可以正常播放:
- <p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>location / {</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>if ( $request_method = ‘OPTIONS’ ) {</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>add_header access-control-allow-headers range;</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>add_header access-control-allow-methods GET,POST,HEAD,OPTIONS;</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>add_header access-control-allow-origin *;</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>return 200;</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>}</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>add_header access-control-allow-origin *;</p><p style=“box-sizing: inherit; margin-bottom: 20px; line-height: 1.8; color: rgb(85, 85, 85); font-family: two; font-size: 15px;”>}</p>
复制代码
我用夸克网盘分享了「m3u8资源去AD-json解析接口源码.zip」,点击链接即可保存。打开「夸克APP」,无需下载在线播放视频,畅享原画5倍速,支持电视投屏。
链接:https://pan.quark.cn/s/4bd47dda023f
【版权声明】:服务器导航网所有内容均来自网络和部分原创,若无意侵犯到您的权利,请及时与联系 QQ 2232175042,将在48小时内删除相关内容!!
