getTracks method

  1. @override
List<MediaStreamTrack> getTracks()
override

Returns a List MediaStreamTrack objects representing all the tracks in this stream.

Implementation

@override
List<MediaStreamTrack> getTracks() {
  return <MediaStreamTrack>[...getAudioTracks(), ...getVideoTracks()];
}