setMediaTracks method
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']));
});
}