Package com.twilio.video
Class Video
java.lang.Object
com.twilio.video.Video
This class allows a user to connect to a Room.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Room
connect
(android.content.Context context, ConnectOptions connectOptions, Room.Listener roomListener) Connect to aRoom
with specified options.static AudioDevice
Returns the AudioDevice.static LogLevel
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 String
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.
-
Constructor Details
-
Video
public Video()
-
-
Method Details
-
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
Returns the version of the Video SDK.- Returns:
- the version of the SDK
-
getLogLevel
Gets the logging level for messages logged by the Video SDK.- Returns:
- the logging level
-
getModuleLogLevel
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
Returns the AudioDevice. -
setAudioDevice
public static void setAudioDevice(@NonNull AudioDevice audioDevice) throws 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:
UnsupportedOperationException
-
setLogLevel
Sets the logging level for messages logged by the Video SDK.- Parameters:
level
- The logging level
-
setModuleLogLevel
Sets the logging level for messages logged by a specific module.- Parameters:
module
- The module for this log levellevel
- The logging level
-