setVideoTrack method

Future<void> setVideoTrack(
  1. VideoTrack track
)

Sets the current VideoTrack for video output.

  • Currently selected VideoTrack can be accessed using state.track.video or stream.track.video.
  • The list of currently available VideoTracks can be obtained accessed using state.tracks.video or stream.tracks.video.

Implementation

Future<void> setVideoTrack(VideoTrack track) async {
  return platform?.setVideoTrack(track);
}