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

API: Query WebRTC push stream anomaly - occurs sporadically. #3960

Open
ziyue7575 opened this issue Feb 23, 2024 · 1 comment
Open

API: Query WebRTC push stream anomaly - occurs sporadically. #3960

ziyue7575 opened this issue Feb 23, 2024 · 1 comment
Assignees
Labels
API HTTP-API, HTTP-Callback, etc. TransByAI Translated by AI/GPT.

Comments

@ziyue7575
Copy link

ziyue7575 commented Feb 23, 2024

Description

Describe the bug
The SRS has been configured with the capability to convert WebRTC streams to RTMP. After initiating a WebRTC stream, the stream can be accessed through the API. However, within the client, there is no identifier for the WebRTC stream; there is only an identifier for the RTMP playback. This results in an inability to terminate the WebRTC stream using the ID found in the 'cid' within the stream. The only solutions appear to be restarting the SRS or having the streaming source disconnect and reconnect.

Version
4.0.215

To Reproduce
Occasionally, there is an issue with a standard WebRTC stream.

Expected behavior
The expectation is to successfully retrieve the client for the WebRTC stream using an API, and to be able to normally disconnect the stream when invoking the API for disconnection.

Additional context

The logs are too extensive and have been included in an attachment.

WebRTC Streaming Exception - Intermittent Log Issue Document WebRtc推流异常-偶现日志.md

TRANS_BY_GPT4

@winlinvip winlinvip changed the title WebRtc推流异常-偶现 WebRTC push stream anomaly - occurs sporadically. Feb 23, 2024
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Feb 23, 2024
@winlinvip winlinvip self-assigned this Mar 4, 2024
@winlinvip winlinvip added the API HTTP-API, HTTP-Callback, etc. label Mar 4, 2024
@winlinvip winlinvip changed the title WebRTC push stream anomaly - occurs sporadically. API: WebRTC push stream anomaly - occurs sporadically. Mar 4, 2024
@winlinvip winlinvip changed the title API: WebRTC push stream anomaly - occurs sporadically. API: Can not query WebRTC push stream anomaly - occurs sporadically. Mar 4, 2024
@winlinvip winlinvip changed the title API: Can not query WebRTC push stream anomaly - occurs sporadically. API: Query WebRTC push stream anomaly - occurs sporadically. Mar 4, 2024
@winlinvip
Copy link
Member

I believe this bug is caused by simultaneous play and publish actions. Thus, the first crucial step is to reproduce this issue. Given its randomly nature, you might attempt to start publishing and playing simultaneously to consistently reproduce the problem. If we can find the exact conditions that trigger this issue, fixing it would become straightforward. Conversely, if we're unable to reproduce the issue, we're left to guess what happened, making it difficult to resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API HTTP-API, HTTP-Callback, etc. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants