Package io.openvidu.java.client
Enum RecordingMode
- java.lang.Object
-
- java.lang.Enum<RecordingMode>
-
- io.openvidu.java.client.RecordingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RecordingMode>
public enum RecordingMode extends Enum<RecordingMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecordingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RecordingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final RecordingMode ALWAYS
The session is recorded automatically as soon as the first client publishes a stream to the session. It is automatically stopped after last user leaves the session (or until you callOpenVidu.stopRecording(String)
).
-
MANUAL
public static final RecordingMode MANUAL
The session is not recorded automatically. To record the session, you must callOpenVidu.startRecording(String)
method. To stop the recording, you must callOpenVidu.stopRecording(String)
.
-
-
Method Detail
-
values
public static RecordingMode[] 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 (RecordingMode c : RecordingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecordingMode 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
-
-