Package com.twilio.video
Class Video
- java.lang.Object
-
- com.twilio.video.Video
-
public abstract class Video extends java.lang.Object
This class allows a user to connect to a Room.
-
-
Constructor Summary
Constructors Constructor Description Video()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Room
connect(android.content.Context context, ConnectOptions connectOptions, Room.Listener roomListener)
Connect to aRoom
with specified options.static AudioDevice
getAudioDevice()
Returns the AudioDevice.static LogLevel
getLogLevel()
Gets the logging level for messages logged by the Video SDK.static LogLevel
getModuleLogLevel(LogModule module)
Returns the logging level for messages logged by the specified LogModule.static java.lang.String
getVersion()
Returns the version of the Video SDK.static void
setAudioDevice(AudioDevice audioDevice)
Sets the custom audio device.static void
setLogLevel(LogLevel level)
Sets the logging level for messages logged by the Video SDK.static void
setModuleLogLevel(LogModule module, LogLevel level)
Sets the logging level for messages logged by a specific module.
-
-
-
Method Detail
-
connect
@NonNull public static Room connect(@NonNull android.content.Context context, @NonNull ConnectOptions connectOptions, @NonNull Room.Listener roomListener)
Connect to aRoom
with specified options.- Parameters:
connectOptions
- options for connecting to room.roomListener
- listener of room related events.- Returns:
- room being connected to.
-
getVersion
@NonNull public static java.lang.String getVersion()
Returns the version of the Video SDK.- Returns:
- the version of the SDK
-
getLogLevel
@NonNull public static LogLevel getLogLevel()
Gets the logging level for messages logged by the Video SDK.- Returns:
- the logging level
-
getModuleLogLevel
@NonNull public static LogLevel getModuleLogLevel(LogModule module)
Returns the logging level for messages logged by the specified LogModule. The default log level for each module isLogLevel.ERROR
.- Returns:
- the logging level
-
getAudioDevice
@NonNull public static AudioDevice getAudioDevice()
Returns the AudioDevice.
-
setAudioDevice
public static void setAudioDevice(@NonNull AudioDevice audioDevice) throws java.lang.UnsupportedOperationException
Sets the custom audio device. TheaudioDevice
can be updated when there is no room in progress and will be applied to subsequentconnect(Context, ConnectOptions, Room.Listener)
API calls. Setting theaudioDevice
while connecting to a room will result inUnsupportedOperationException
.- Parameters:
audioDevice
- The audio device.- Throws:
java.lang.UnsupportedOperationException
-
setLogLevel
public static void setLogLevel(@NonNull LogLevel level)
Sets the logging level for messages logged by the Video SDK.- Parameters:
level
- The logging level
-
-