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

Bug: 房间号既可以是key, key也可以是房间号 #213

Open
iarray opened this issue Aug 12, 2022 · 0 comments
Open

Bug: 房间号既可以是key, key也可以是房间号 #213

iarray opened this issue Aug 12, 2022 · 0 comments

Comments

@iarray
Copy link

iarray commented Aug 12, 2022

例如: 房间号aa 串流密钥 rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk

正常使用
推流 rtmp://localhost:1935/live/rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk
拉流 http://localhost:7001/live/aa.flv

但发现下面做法也能推拉流成功. 这明显是不符合逻辑.
推流 rtmp://localhost:1935/live/aa
拉流 http://localhost:7001/live/rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk.flv

解决方法: 建议房间号和串流的 缓存键增加前缀 用以区分, 例如:
room:aa
key:rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk

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

1 participant