-
Notifications
You must be signed in to change notification settings - Fork 10
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
Can't play video when player starts after publisher #5
Comments
Supplement: In both cases, audio can stream normally, but video cannot. The log contains the following warning:
|
After testing, avc ignore type=1 for no sequence header is caused by enabling rtc_to_rtmp, which may not be related to this issue.
|
Is it because Unity has set the AV_CODEC_FLAG_GLOBAL_HEADER, and SRS did not process the pps/sps obtained from stradata and put it before the keyframe?
|
If player starts after publisher, it need to wait for next I frame from publisher, about 2~7s. SRS wil send PLI to publisher to request I frame from publisher but it might not response. It's not a bug and SRS can't fix it, I think Unity WebRTC sdk might couldn't fix it also. Just a different workflow of WebRTC. |
Hello, I also encountered the same problem. There is sound when the stream is published first and then played, but the video cannot work normally. So that we cannot use the normal live broadcast function. Is there any solution to this problem? Thanks! |
Fixed in 3.0.0-pre.5, see Unity-Technologies/com.unity.webrtc#882 |
Hello, I encountered a problem. I use SrsStreamer in the project for streaming. If I start the streaming end first and then start the RTC player, I cannot get the video stream. When I check in chrome://webrtc-internals/, there is indeed no video data. However, if I start the RTC player and click the play button first, and then start Unity SrsStreamer for streaming, the streaming is successful at this time. What could be the cause of this?
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: