I am trying to publish a stream with both audio and video, but the subscriber can only hear the audio. My publishing device is showing that it is streaming the video. Why is this happening?
In order to ensure the best communication, Red5 Pro is configured to prioritize audio over video. When there is insufficient bandwidth on the subscriber to stream both audio and video, the SDK switches to audio only.
For iOS, you can assign a
delegate to the
R5Stream instance and implement an
onR5StreamStatus:withStatus:withMessage method to capture events. The status code to look for is:
R5PlayerStatusNetStatus with a message value of
For Android, the initial stream actually comes in with just Audio, as indicated in the metadata by
streamMode=Audio. After some time, the metadata switches to
streamMode=Video/Audio and video starts to playback. So, you would need to set
setListener on the
R5Stream instance. For a list of the events on that listener please follow this link.
Additionally, you may want to look into increasing your bandwidth and network speed, along with increasing the size of your server.