replaceTrackForMultiCodecSimulcast method
- MediaStreamTrack newTrack
Implementation
Future<void> replaceTrackForMultiCodecSimulcast(
rtc.MediaStreamTrack newTrack) async {
simulcastCodecs.forEach((key, simulcastTrack) async {
await simulcastTrack.sender?.replaceTrack(newTrack);
simulcastTrack.mediaStreamTrack = mediaStreamTrack;
});
}