replaceTrackForMultiCodecSimulcast method

Future<void> replaceTrackForMultiCodecSimulcast(
  1. MediaStreamTrack newTrack
)

Implementation

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