-
public class VideoBandwidthProfileOptions.BuilderBuilder class for VideoBandwidthProfileOptions.
-
-
Method Summary
-
-
Method Detail
-
dominantSpeakerPriority
@Deprecated() VideoBandwidthProfileOptions.Builder dominantSpeakerPriority(@Nullable() TrackPriority priority)
Set the minimum TrackPriority of the Dominant Speaker's s. This property is
{@code null}by default and can be set to{@code * null}. A{@code null}value results in the Twilio Media Server selecting the DominantSpeaker's priority. This property will only be enabled if the Dominant Speaker feature isenabled via enableDominantSpeaker.- Parameters:
priority- The track priority to use or{@code null}.
-
maxSubscriptionBitrate
VideoBandwidthProfileOptions.Builder maxSubscriptionBitrate(@Nullable() Long maxSubscriptionBitrate)
Set the maximum downlink video bandwidth in Kilobits per second (Kbps). This property is2,400 Kbps by default and can be set to
{@code null}. A{@code null}value results in themaximum allowed bitrate for a Room.- Parameters:
maxSubscriptionBitrate- The maximum bitrate for subscribe RemoteVideoTracksor{@code null}.
-
maxTracks
@Deprecated() VideoBandwidthProfileOptions.Builder maxTracks(@Nullable() Long maxTracks)
Set the maximum number of visible RemoteVideoTracks selected first using and second using an N-Loudest policy. This property is
{@code null}bydefault and can be set to{@code null}. A{@code null}value results in no limits on thenumber of visible RemoteVideoTracks.- Parameters:
maxTracks- The maximum number of video tracks or{@code null}.
-
mode
VideoBandwidthProfileOptions.Builder mode(@Nullable() BandwidthProfileMode mode)
Set how RemoteVideoTracks TrackPriority values are mapped to bandwidthallocation in Group Rooms. This property is
{@code null}by default and can be set to{@code null}. A{@code null}value results in the Twilio Media Server selecting the mode.- Parameters:
mode- The BandwidthProfileMode to use or{@code null}.
-
renderDimensions
@Deprecated() VideoBandwidthProfileOptions.Builder renderDimensions(@NonNull() Map<TrackPriority, VideoDimensions> dimensions)
Set the desired render dimensions of RemoteVideoTracks based on and the RemoteVideoTracks of the Dominant Speaker. The bandwidthallocation algorithm will distribute the available downlink bandwidth proportional to therequested render dimensions.
- Parameters:
dimensions- A map containing at most one entry for each TrackPriority.
-
trackSwitchOffMode
VideoBandwidthProfileOptions.Builder trackSwitchOffMode(@Nullable() TrackSwitchOffMode mode)
Configure how RemoteVideoTracks are switched off. This property is
{@code null}by default and can be set to{@code null}. A{@code null}value results in the TwilioMedia Server selecting the track switch off mode.- Parameters:
mode- The TrackSwitchOffMode to use or{@code null}.
-
clientTrackSwitchOffControl
VideoBandwidthProfileOptions.Builder clientTrackSwitchOffControl(@Nullable() ClientTrackSwitchOffControl control)
Configure how RemoteVideoTracks are switched on and off based on the provided ClientTrackSwitchOffControl. This cannot be set along with , otherwise a IllegalArgumentException will be thrown when build is invoked. This property is
{@code null}by default and can be set to{@code null}. A{@code null}value results in automatically selecting .- Parameters:
control- The ClientTrackSwitchOffControl to use or{@code null}.
-
videoContentPreferencesMode
VideoBandwidthProfileOptions.Builder videoContentPreferencesMode(@Nullable() VideoContentPreferencesMode mode)
Configure how the video content preferences are determined based on the . This cannot be set along with , otherwise a IllegalArgumentException will be thrown when build is invoked. This property is
{@code null}by default and can be set to{@code null}. A{@code null}value results in automatically selecting .- Parameters:
mode- The VideoContentPreferencesMode to use or{@code null}.
-
build
VideoBandwidthProfileOptions build()
-
-
-
-