Package com.twilio.video
Enum BandwidthProfileMode
- java.lang.Object
-
- java.lang.Enum<BandwidthProfileMode>
-
- com.twilio.video.BandwidthProfileMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BandwidthProfileMode>
public enum BandwidthProfileMode extends java.lang.Enum<BandwidthProfileMode>
BandwidthProfileMode specifies howRemoteVideoTrack
(s)TrackPriority
values are mapped to bandwidth allocation in Group Rooms.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLABORATION
This mode is for use cases where someRemoteVideoTrack
(s) are more prioritized over others.GRID
This mode is for use cases where all the subscribedRemoteVideoTrack
(s) are equally important.PRESENTATION
This mode is for use cases where someRemoteVideoTrack
(s) are deemed critical and must be preserved at any cost over the otherRemoteVideoTrack
(s).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BandwidthProfileMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BandwidthProfileMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COLLABORATION
public static final BandwidthProfileMode COLLABORATION
This mode is for use cases where someRemoteVideoTrack
(s) are more prioritized over others. However, the lower priorityRemoteVideoTrack
(s) still need to be visible. The bandwidth allocation algorithm will distribute the available downlink bandwidth proportional to the requested renderVideoDimensions
. In case of low downlink bandwidth, the quality of higher priorityRemoteVideoTrack
(s) may be degraded to avoid switching off lower priorityRemoteVideoTrack
(s).
-
GRID
public static final BandwidthProfileMode GRID
This mode is for use cases where all the subscribedRemoteVideoTrack
(s) are equally important. The bandwidth allocation algorithm will share the available downlink bandwidth equally among the subscribedRemoteVideoTrack
(s).
-
PRESENTATION
public static final BandwidthProfileMode PRESENTATION
This mode is for use cases where someRemoteVideoTrack
(s) are deemed critical and must be preserved at any cost over the otherRemoteVideoTrack
(s). The bandwidth allocation algorithm will allocate as big a share of the available downlink bandwidth as it possibly can to the higher priorityRemoteVideoTrack
(s), and only then consider the lower priorityRemoteVideoTrack
(s). In case of low downlink bandwidth, the lower priorityRemoteVideoTrack
(s) are switched off in order to preserve the quality of the higher priorityRemoteVideoTrack
(s).
-
-
Method Detail
-
values
public static BandwidthProfileMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BandwidthProfileMode c : BandwidthProfileMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BandwidthProfileMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-