mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-16 21:51:55 +03:00
04f1679e2a
The observer is just an adapter for the "PeerConnection.Observer" provided by the WebRTC library; a custom observer is used to expose only the events needed outside "PeerConnectionWrapper". For now only the same events that were already handled are taken into account, but at a later point additional events (like "onAddTrack" instead of "onAddStream", which is deprecated) could be added too. Note that the thread used to handle the events has changed; the EventBus subscriber mode was "MAIN", but as the events were posted from a PeerConnection observer, which run in a worker thread rather than in the main thread, the subscriber was executed in the main thread rather than in the same thread as the poster. Due to this the actions performed by the handler now must be explicitly run in the main thread. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> |
||
---|---|---|
.. | ||
assets | ||
java | ||
res | ||
AndroidManifest.xml | ||
ic_launcher-web.png |