webrtc/examples
Jesús Leganés-Combarro 'piranna ffbfba979f Added PeerConnectionObserverJni::OnRemoveTrack()
Change-Id: I0880caa77a1097f56c560152e85c9ca29242f825

This PR add support for the `PeerConnectionObserverJni::OnRemoveTrack()`
event on Java, allowing to be notified when a remote track has been
removed. It's a very thing JNI wrapper on top of C++ API, being mostly
similar to other already available events like `track` and `addTrack`.

In Javascript API, tracks are not "removed" explicitly from the
PeerConnection, but instead receiver PeerConnection gets notified that
they have been removed from the streams they are associated to, and when
no `MediaStream` object has that track, it's considered that the track
has been removed from the PeerConnection. In Java and C++ APIs there's no
`MediaStreamObserver` class, so there's no way to listen to the
`removeTrack` event the same way happens in Javascript API, but instead
C++ API has a `removeTrack` event at PeerConnection level. This patchset
just only wraps and expose this `removeTrack` event from the C++ API to
the Java API.

This PR has been sponsored by Atos Research and Innovation
(https://atos.net/en/about-us/innovation-and-research).

Bug: webrtc:12850
Change-Id: I0880caa77a1097f56c560152e85c9ca29242f825
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/218847
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Xavier Lepaul‎ <xalep@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34225}
2021-06-03 19:24:55 +00:00
..
aarproject Change from sakal@webrtc.org to xalep@webrtc.org in OWNERS files. 2021-04-14 08:27:54 +00:00
androidapp Added PeerConnectionObserverJni::OnRemoveTrack() 2021-06-03 19:24:55 +00:00
androidjunit Change from sakal@webrtc.org to xalep@webrtc.org in OWNERS files. 2021-04-14 08:27:54 +00:00
androidnativeapi Deprecate PeerConnectionFactory::CreatePeerConnection 2021-05-10 08:47:48 +00:00
androidtests Change from sakal@webrtc.org to xalep@webrtc.org in OWNERS files. 2021-04-14 08:27:54 +00:00
androidvoip Change from sakal@webrtc.org to xalep@webrtc.org in OWNERS files. 2021-04-14 08:27:54 +00:00
objc Replace legacy getStats with standard getStats in the iOS example 2021-05-20 08:40:11 +00:00
objcnativeapi Deprecate PeerConnectionFactory::CreatePeerConnection 2021-05-10 08:47:48 +00:00
peerconnection Delete unused class SignalThread 2021-02-11 10:39:03 +00:00
stunprober Switch pc client and stunprober to ABSL_FLAG. 2019-07-17 14:03:59 +00:00
stunserver (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
turnserver Format almost everything. 2019-07-08 13:45:15 +00:00
unityplugin Introduce CreateDataChannelOrError 2021-05-26 09:43:29 +00:00
BUILD.gn Replace legacy getStats with standard getStats in the iOS example 2021-05-20 08:40:11 +00:00
DEPS Remove +absl/flags exceptions from non root DEPS files. 2019-07-16 16:52:41 +00:00
OWNERS Remove wildcard ownership for build files. 2020-02-19 14:05:46 +00:00