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 #3

Open
echome123 opened this issue Dec 1, 2022 · 2 comments
Open

提一个录制发现的bug #3

echome123 opened this issue Dec 1, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@echome123
Copy link

通过API发起录制命令,程序正常进入录制状态。
此时,再次发送一个相同参数的录制请求,会发现第一次的录制文件被清空了,重新开始新的录制。

这时候问题就发生了

通过拉流列表API,能看到该流目前有两个录制订阅者。
使用停止录制命令时,由于streampath相同,执行一次之后,发现只停止了一个录制订阅,再次执行停止录制API命令,API返回没有这个任务。

再去查看正在录制的任务列表API,发现返回也是空的,没有录制任务。

此时后台实际还在跑一个录制任务,通过API怎么都不能终止,拉流API里面也能看到有这个任务,但是此时录制API里面好像已经把它清空了,当作一个不存在的任务,无法停止。

最后只能通过closestream 来中断拉流,使这个重复存在的录制被迫停止。

建议录制任务添加的时候,可以像拉流API一样,判断一下streampath是否已经存在,如果已经存在就不能 重复建立录制任务。

@langhuihui
Copy link
Member

确实是个bug

@langhuihui langhuihui added the bug Something isn't working label Dec 2, 2022
@langhuihui
Copy link
Member

解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants