addRemoteTrack method Null safety
- String media,
- List<
MediaStream> streams
Add remote receving track.
String] media - Media kind ('audio' | 'video'). List<MediaStream> streams - Streams the track will belong to. Return Future<RTCRtpTransceiver> Future that will be resolved when the RTCRtpTransceiver is assigned an mid value.
Implementation
Future<RTCRtpTransceiver> addRemoteTrack(
String media, List<MediaStream> streams) async {
_logger.i('Viewer adding remote track $media');
return webRTCPeer.addRemoteTrack(media, streams);
}