To support new MCU and P2P with JS SDK under the new unified plan in chrome, deprecated methods for stream/track manipulation need to be removed and we need to make sure we are using MediaStreamTrack APIs to add/remove/replace tracks.
addLocalMediaStreams updated to always use removeTrack(RTCRTPSender) to remove a track
addLocalMediaStreams updated to always use addTrack(MST, ...stream) to add a track and optionally associate with a MediaStream
Purpose of this PR:
To support new MCU and P2P with JS SDK under the new unified plan in chrome, deprecated methods for stream/track manipulation need to be removed and we need to make sure we are using
MediaStreamTrack
APIs to add/remove/replace tracks.addLocalMediaStreams
updated to always useremoveTrack(RTCRTPSender)
to remove a trackaddLocalMediaStreams
updated to always useaddTrack(MST, ...stream)
to add a track and optionally associate with aMediaStream
See ESS-1457 for more details.