setRemoteDefaultVideoStreamType method

  1. @override
Future<void> setRemoteDefaultVideoStreamType(
  1. VideoStreamType streamType
)

Sets the default video-stream type of the remotely subscribed video stream when the remote user sends dual streams.

You can call this method either before or after joining a channel. If you call both setRemoteVideoStreamType and setRemoteDefaultVideoStreamType, the SDK applies the settings in the setRemoteVideoStreamType method.

Parameter streamType Sets the default video-stream type. See VideoStreamType.

Implementation

@override
Future<void> setRemoteDefaultVideoStreamType(VideoStreamType streamType) {
  return _invokeMethod('setRemoteDefaultVideoStreamType', {
    'streamType': VideoStreamTypeConverter(streamType).value(),
  });
}