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.29k stars 636 forks source link

Change Video Source Does Not Work In Android Conference #6599

Closed lastpeony closed 2 months ago

lastpeony commented 2 months ago

The changeVideoSource method in the WebRTC client Android SDK does not function correctly during an ongoing conference if the user tries to play the room. When changeVideoSource called with any type of source video freezes and after few seconds it disconnects.

However, it works fine during when only publishing. Additionally, the method works if its called before call begins in both conference and only publish.

Reproduce: After conference begins try to switch from front camera to back camera by using changeVideoSource Comment out play in conference scenario and try again, observe it work this time.

Expected Behavior: The changeVideoSource method should work on air in conference , just as it does during only publishing.

burak-58 commented 2 months ago

Fixed in https://github.com/ant-media/WebRTC-Android-SDK/pull/98