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

Refactor Android SurfaceviewRenderer Release Mechanism On Reconnection #6562

Open lastpeony opened 3 months ago

lastpeony commented 3 months ago

In the Android SDK, during reconnection, we release the remote SurfaceView renderers for certain cases such as conferences and multi-track playback. However, for single-track playback, we do not release the remote renderer on reconnection.

To reduce complexity and ensure consistency, we should standardize the behavior by making all scenarios handle reconnection in the same way. This means either always releasing or always retaining the remote SurfaceView renderers during reconnection.