updateMediaStreamAndTrack method

  1. @internal
void updateMediaStreamAndTrack(
  1. MediaStream stream,
  2. MediaStreamTrack track
)

Implementation

@internal
void updateMediaStreamAndTrack(
    rtc.MediaStream stream, rtc.MediaStreamTrack track) {
  _mediaStream = stream;
  _mediaStreamTrack = track;
  events.emit(TrackStreamUpdatedEvent(
    track: this,
    stream: stream,
  ));
}