Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playlist代理后的m3u不支持回放 #3

Open
xzmu opened this issue Mar 13, 2025 · 8 comments
Open

playlist代理后的m3u不支持回放 #3

xzmu opened this issue Mar 13, 2025 · 8 comments

Comments

@xzmu
Copy link

xzmu commented Mar 13, 2025

原先的m3u在diyp打开的时候可以支持回看的功能

在经过livetv代理之后,回看功能就失效了。

使用的是playlist进行的代理。

@snowie2000
Copy link
Owner

snowie2000 commented Mar 13, 2025

目前我手上没有任何源支持回看,所以我也不知道diyp的回看是怎么实现的,无法支持,好像隐约知道是传递什么固定的参数?还是参数是可变的……不太清楚也没办法测试,所以目前做不了

@snowie2000
Copy link
Owner

类似的,组播转单播也是可以实现的,但是我没有这样的源,无法测试是否可行,也是做不了

@xzmu
Copy link
Author

xzmu commented Mar 13, 2025

live.zip

附件中的压缩包,有2个m3u8文件,一个是可以回看的index.m3u8,另一个是经livetv转发后无法回看的live.m3u8-livetv

这个是ott模式的点播,所以正常情况下肯定是可以回看的,然后diyp是使用txt格式的播放源,所以与m3u没关系,我分析只有可能是m3u8的区别造成的影响

@snowie2000
Copy link
Owner

和m3u8以及txt格式无关。

回看的本质是对源附加一个额外的时间戳,例如原本的观看地址是
https://example.com/iptv.m3u8
回看时,diyp会自动添加一个时间戳,例如
https://example.com/iptv.m3u8?time=2025-01-01
然后就会获得一个对应那个时间点的新的m3u8。

由于我并不知道回看具体是添加什么额外的信息来实现的,livetv也没有对应的代码来支持透传这些参数,自然就无法回看了

@xzmu
Copy link
Author

xzmu commented Mar 13, 2025

和m3u8肯定相关。因为在回看之前,diyp本身就已经知道这个频道是否支持回看了。是否响应参数是另外一回事。具体我也做过试验,用nginx直接做反向代理,同样是可以支持回看,但是因为数据流和数据内的地址没有改变,所以无法观看

@snowie2000
Copy link
Owner

nginx反向代理,nginx默认会透传所有参数。

@snowie2000
Copy link
Owner

@snowie2000
Copy link
Owner

1.8 版本支持了参数透传,你试试能不能正常工作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants