Interface HMSUpdateListener
-
- All Implemented Interfaces:
-
live.hms.video.sdk.IErrorListener,live.hms.video.sdk.RequestPermissionInterface
public interface HMSUpdateListener implements IErrorListener, RequestPermissionInterface
This is the main listener that the calling application should implement. HMS SDK will send all upates through the callbacks in this interface. Pass the app's implementation while calling HMSSDK.join method
-
-
Method Summary
Modifier and Type Method Description abstract UnitonJoin(HMSRoom room)Called when joining of HMSRoom is successful abstract UnitonRoomUpdate(HMSRoomUpdate type, HMSRoom hmsRoom)Called if there is any update related to the HMSRoom abstract UnitonPeerUpdate(HMSPeerUpdate type, HMSPeer peer)Called if there is any update related to the HMSPeer abstract UnitonTrackUpdate(HMSTrackUpdate type, HMSTrack track, HMSPeer peer)Called if there is any update related to HMSTrack abstract UnitonRoleChangeRequest(HMSRoleChangeRequest request)Called when there is a non forced role change request from another HMSPeer abstract UnitonMessageReceived(HMSMessage message)Called when there is a HMSMessage send by another HMSPeer UnitonReconnecting(HMSException error)Called when the SDK is trying to reconnect automatically on a network drop/switch etc UnitonReconnected()Called when the SDK has successfully recovered from a network glitch UnitonRemovedFromRoom(HMSRemovedFromRoom notification)Called when you have been removed from a room. abstract UnitonChangeTrackStateRequest(HMSChangeTrackStateRequest details)Called when a peer remotely changes a track property. UnitpeerListUpdated(ArrayList<HMSPeer> addedPeers, ArrayList<HMSPeer> removedPeers)Called when new peers are added to peerlist. UnitonSessionStoreAvailable(HmsSessionStore sessionStore)Called when the session store is available. UnitonTranscripts(HmsTranscripts transcripts)Called when the webrtc session has transcription of the audio. -
Methods inherited from class live.hms.video.sdk.IErrorListener
onError -
Methods inherited from class live.hms.video.sdk.RequestPermissionInterface
onPermissionsRequested -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onJoin
abstract Unit onJoin(HMSRoom room)
Called when joining of HMSRoom is successful
- Parameters:
room- : The fully formed HMSRoom object
-
onRoomUpdate
abstract Unit onRoomUpdate(HMSRoomUpdate type, HMSRoom hmsRoom)
Called if there is any update related to the HMSRoom
- Parameters:
type- specifies the type of updatehmsRoom- The updated HMSRoom object
-
onPeerUpdate
abstract Unit onPeerUpdate(HMSPeerUpdate type, HMSPeer peer)
Called if there is any update related to the HMSPeer
- Parameters:
type- specifies the type of update of the peerpeer- is the newly updated HMSPeer object
-
onTrackUpdate
abstract Unit onTrackUpdate(HMSTrackUpdate type, HMSTrack track, HMSPeer peer)
Called if there is any update related to HMSTrack
-
onRoleChangeRequest
abstract Unit onRoleChangeRequest(HMSRoleChangeRequest request)
Called when there is a non forced role change request from another HMSPeer
- Parameters:
request- A HMSRoleChangeRequest mentioning the details of the request
-
onMessageReceived
abstract Unit onMessageReceived(HMSMessage message)
Called when there is a HMSMessage send by another HMSPeer
- Parameters:
message- : the HMSMessage received
-
onReconnecting
Unit onReconnecting(HMSException error)
Called when the SDK is trying to reconnect automatically on a network drop/switch etc
- Parameters:
error- The HMSException that defines the error due to which SDK is trying to reconnect
-
onReconnected
Unit onReconnected()
Called when the SDK has successfully recovered from a network glitch
-
onRemovedFromRoom
Unit onRemovedFromRoom(HMSRemovedFromRoom notification)
Called when you have been removed from a room. Causes are:
The room was ended for everyone.
The receiver particularly was removed from the room.
- Parameters:
notification- the HMSRemovedFromRoom which contains details.
-
onChangeTrackStateRequest
abstract Unit onChangeTrackStateRequest(HMSChangeTrackStateRequest details)
Called when a peer remotely changes a track property. For example, forcing the receivers mic to mute.
- Parameters:
details- a HMSChangeTrackStateRequest that contains details on the request.
-
peerListUpdated
Unit peerListUpdated(ArrayList<HMSPeer> addedPeers, ArrayList<HMSPeer> removedPeers)
Called when new peers are added to peerlist. Use this to show the list of peers on UI This is called with the intial set of peer on joining a room as well as with update list of peers if some peer joins or leaves the room
-
onSessionStoreAvailable
Unit onSessionStoreAvailable(HmsSessionStore sessionStore)
Called when the session store is available.
-
onTranscripts
Unit onTranscripts(HmsTranscripts transcripts)
Called when the webrtc session has transcription of the audio. Not to be confused with transcripts during HLS streams.
-
-
-
-