setMediaTracks method

void setMediaTracks(
  1. List audioTracks,
  2. List videoTracks
)

Implementation

void setMediaTracks(List<dynamic> audioTracks, List<dynamic> videoTracks) {
  _audioTracks.clear();

  audioTracks.forEach((track) {
    _audioTracks.add(MediaStreamTrackNative(
        track['id'], track['label'], track['kind'], track['enabled']));
  });

  _videoTracks.clear();
  videoTracks.forEach((track) {
    _videoTracks.add(MediaStreamTrackNative(
        track['id'], track['label'], track['kind'], track['enabled']));
  });
}