getMediaTracks method

  1. @override
Future<void> getMediaTracks()
override

Implementation

@override
Future<void> getMediaTracks() async {
  final response = await WebRTC.invokeMethod(
    'mediaStreamGetTracks',
    <String, dynamic>{'streamId': id},
  );

  setMediaTracks(response['audioTracks'], response['videoTracks']);
}