Package live.hms.video.diagnostics
Class HMSDiagnostics
-
- All Implemented Interfaces:
public final class HMSDiagnostics
-
-
Field Summary
Fields Modifier and Type Field Description private final Handlerhandlerprivate HMSLocalVideoTrackvideoTrack
-
Method Summary
Modifier and Type Method Description final HandlergetHandler()final HMSLocalVideoTrackgetVideoTrack()final UnitsetVideoTrack(HMSLocalVideoTrack videoTrack)final UnitstartCameraCheck(HMSVideoTrackSettings.CameraFacing cameraFacing, HMSCameraCheckListener listener)final UnitstopCameraCheck()final UnitstartMicCheck(Context context, HMSAudioDeviceCheckListener listener)final UnitstopMicCheck()final UnitstartSpeakerCheck()final UnitstopSpeakerCheck()final UnitstartConnectivityCheck(String region, ConnectivityCheckListener listener, Long timeInMillis)Method to start testing the connectivity to HMS's media servers final UnitstopConnectivityCheck()Use this method to stop an ongoing connectivity check. -
-
Method Detail
-
getHandler
final Handler getHandler()
-
getVideoTrack
final HMSLocalVideoTrack getVideoTrack()
-
setVideoTrack
final Unit setVideoTrack(HMSLocalVideoTrack videoTrack)
-
startCameraCheck
final Unit startCameraCheck(HMSVideoTrackSettings.CameraFacing cameraFacing, HMSCameraCheckListener listener)
-
stopCameraCheck
final Unit stopCameraCheck()
-
startMicCheck
final Unit startMicCheck(Context context, HMSAudioDeviceCheckListener listener)
-
stopMicCheck
final Unit stopMicCheck()
-
startSpeakerCheck
final Unit startSpeakerCheck()
-
stopSpeakerCheck
final Unit stopSpeakerCheck()
-
startConnectivityCheck
final Unit startConnectivityCheck(String region, ConnectivityCheckListener listener, Long timeInMillis)
Method to start testing the connectivity to HMS's media servers
- Parameters:
region-The region for connectivity check (us, eu, in). Defaults to "us"
listener-A callback instance of ConnectivityCheckListener which has methods to inform about progress and completion of the test
timeInMillis-The duration of the connectivity check in milliseconds. Defaults to 20 seconds.
-
stopConnectivityCheck
final Unit stopConnectivityCheck()
Use this method to stop an ongoing connectivity check. You will get the results calculated till now in the onCompleted callback of ConnectivityCheckListener
-
-
-
-