ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.25k stars 624 forks source link

Play the video before the publisher starts publishing it, we get an error saying `no_stream_exists` - SDK-40 #4998

Open mekya opened 1 year ago

mekya commented 1 year ago

If we try to play the video before the publisher starts publishing it, we get an error saying no_stream_exists. But after sometime the publisher starts the video publishing, the player is unable to play the video. And in this scenario onDisconnected is being called, which is cancelling the periodic room information job

Steps-

  1. Join conference room
  2. Start playing a stream which will join in near future (an example of this can be we start playing the remote stream before the publish has started for remote stream)
  3. The video for remote peer fails to play, and onDisconnected gets called
mekya commented 1 year ago

For the iOS, I've tried this case and it no longer exists in the refactor branch. Check it out. https://github.com/ant-media/WebRTC-iOS-SDK/pull/17

It's expected that the server reports with no_stream_exists because there is no active stream on the server side. After the publisher is connected, it will start to play in a few seconds.