setMaxVideoForwarding method

  1. @Deprecated('This method is supported only in SDK 3.6.0. To set Video Forwarding in SDK 3.6.1 and later, use the [ConferenceService.setVideoForwarding()] method.')
Future<bool> setMaxVideoForwarding(
  1. MaxVideoForwarding max,
  2. List<Participant> prioritizedParticipants
)

Sets the maximum number of video streams that may be transmitted to the local participant.

This method uses the following parameters:

  • max: The maximum number of video streams that may be transmitted to the local participant. The valid parameter values are between 0 and 4. By default, the parameter is set to 4.
  • prioritizedParticipants: The list of the prioritized participants. This parameter allows using a pin option to prioritize specific participant's video streams and display their videos even when these participants do not talk.

Implementation

@Deprecated(
    'This method is supported only in SDK 3.6.0. To set Video Forwarding in SDK 3.6.1 and later, use the [ConferenceService.setVideoForwarding()] method.')
Future<bool> setMaxVideoForwarding(
    MaxVideoForwarding max, List<Participant> prioritizedParticipants) async {
  final result =
      await _methodChannel.invokeMethod<bool>("setMaxVideoForwarding", {
    "max": max,
    "prioritizedParticipants":
        prioritizedParticipants.map((e) => e.toJson()).toList()
  });
  return Future.value(result);
}