Define legacy getLocalStreams() on top of track-based API.
getLocalStreams() is redefined from a list of streams modified by addStream() and removeStream() to "all streams of all senders". When using the stream-based APIs, getLocalStreams() behave exactly like it did before this CL. Because senders are added or removed by addTrack() and removeTrack(), this CL makes it possible for spec-compliant APIs to modify the legacy getLocalStreams(), which was not possible before this CL. In follow-up CLs addStream() and removeStream() will also be implemented on top of the track-based APIs and RTCPeerConnectionHandler code will be removed. This CL adds LayoutTests for expected behavior of legacy stream-based APIs when fully implemented on top of track-based APIs. This includes the first tests for interaction between legacy and non-legacy APIs. Design doc: https://docs.google.com/document/d/1Obbeg-B4_04twVctHdf7C7vkUQrGlLvOaV0C8J5_-Gs/edit?usp=sharing Bug: 803021, 738929 Change-Id: Ibab3f8329809437b6058c3350cd11e747054efd2 Reviewed-on: https://chromium-review.googlesource.com/893385Reviewed-by:Harald Alvestrand <hta@chromium.org> Commit-Queue: Henrik Boström <hbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#533656}
Showing
Please register or sign in to comment