Package com.twilio.video
Class Video
- java.lang.Object
-
- com.twilio.video.Video
-
public abstract class Video extends java.lang.ObjectThis 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 Roomconnect(android.content.Context context, ConnectOptions connectOptions, Room.Listener roomListener)Connect to aRoomwith specified options.static AudioDevicegetAudioDevice()Returns the AudioDevice.static LogLevelgetLogLevel()Gets the logging level for messages logged by the Video SDK.static LogLevelgetModuleLogLevel(LogModule module)Returns the logging level for messages logged by the specified LogModule.static java.lang.StringgetVersion()Returns the version of the Video SDK.static voidsetAudioDevice(AudioDevice audioDevice)Sets the custom audio device.static voidsetLogLevel(LogLevel level)Sets the logging level for messages logged by the Video SDK.static voidsetModuleLogLevel(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 aRoomwith 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.UnsupportedOperationExceptionSets the custom audio device. TheaudioDevicecan be updated when there is no room in progress and will be applied to subsequentconnect(Context, ConnectOptions, Room.Listener)API calls. Setting theaudioDevicewhile 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
-
-