- java.lang.Object
-
- java.lang.Enum<RTCBundlePolicy>
-
- dev.onvoid.webrtc.RTCBundlePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<RTCBundlePolicy>
public enum RTCBundlePolicy extends Enum<RTCBundlePolicy>
The bundle policy affects which media tracks are negotiated if the remote endpoint is not bundle-aware, and what ICE candidates are gathered. If the remote endpoint is bundle-aware, all media tracks and data channels are bundled onto the same transport.- Author:
- Alex Andres
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BALANCEDGather ICE candidates for each media type in use (audio, video, and data).MAX_BUNDLEGather ICE candidates for only one track.MAX_COMPATGather ICE candidates for each track.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RTCBundlePolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static RTCBundlePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BALANCED
public static final RTCBundlePolicy BALANCED
Gather ICE candidates for each media type in use (audio, video, and data). If the remote endpoint is not bundle-aware, negotiate only one audio and video track on separate transports.
-
MAX_BUNDLE
public static final RTCBundlePolicy MAX_BUNDLE
Gather ICE candidates for only one track. If the remote endpoint is not bundle-aware, negotiate only one media track.
-
MAX_COMPAT
public static final RTCBundlePolicy MAX_COMPAT
Gather ICE candidates for each track. If the remote endpoint is not bundle-aware, negotiate all media tracks on separate transports.
-
-
Method Detail
-
values
public static RTCBundlePolicy[] 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 (RTCBundlePolicy c : RTCBundlePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RTCBundlePolicy valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-