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

请问是否支持断掉Hls协议连接的客户端 #3506

Closed
liuqiyang7 opened this issue Apr 30, 2024 · 3 comments
Closed

请问是否支持断掉Hls协议连接的客户端 #3506

liuqiyang7 opened this issue Apr 30, 2024 · 3 comments

Comments

@liuqiyang7
Copy link

咨询的功能模块
请问是否支持断掉Hls协议连接的客户端?

咨询的具体内容和问题
请问是否支持断掉Hls协议连接的客户端?
尝试使用/index/api/kick_session和/index/api/kick_sessions接口没有效果,会生成一个新的sessionId,客户端并没有什么感知
期望可以把和客户端交互的session失效掉

注意事项

  • 技术咨询前请先认真阅读readme, wiki,如有必要,您也可以同时搜索已经答复的issue,如果没找到答案才在此提issue

  • 技术咨询不属于bug缺陷,要求用户先star(收藏)本项目,否则会直接关闭issue

@xiongguangjie
Copy link
Member

这个没办法吧(http是短连接,hls 流是多次htt请求组成的),只能通过鉴权来禁止,或者你二开,没有cookie 的返回404

@liuqiyang7
Copy link
Author

这个没办法吧(http是短连接,hls 流是多次htt请求组成的),只能通过鉴权来禁止,或者你二开,没有cookie 的返回404

但是第一次触发鉴权之后续会一直自动续签,不会再触发回调。 如果用户一直挂在后台播放我们也没有办法进行干预。

@xia-chu
Copy link
Member

xia-chu commented May 23, 2024

这个没办法吧(http是短连接,hls 流是多次htt请求组成的),只能通过鉴权来禁止,或者你二开,没有cookie 的返回404

但是第一次触发鉴权之后续会一直自动续签,不会再触发回调。 如果用户一直挂在后台播放我们也没有办法进行干预。

目前播放成功就可以一直播放下去 跟长连接的协议效果一致。
如果要中途踢人 只能把cookie失效掉才行 这个机制目前不支持

@xia-chu xia-chu closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants