Package live.hms.video.sdk
Interface HMSPreviewListener
-
- All Implemented Interfaces:
-
live.hms.video.sdk.IErrorListener,live.hms.video.sdk.RequestPermissionInterface
public interface HMSPreviewListener implements IErrorListener, RequestPermissionInterface
Information about the preview request. May contain success or failure.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonPreview(HMSRoom room, Array<HMSTrack> localTracks)If the generation of a preview was successful, information about the room joined and the tracks will be sent. 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 UnitpeerListUpdated(ArrayList<HMSPeer> addedPeers, ArrayList<HMSPeer> removedPeers)Called when new peers are added to peerlist. -
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
-
onPreview
abstract Unit onPreview(HMSRoom room, Array<HMSTrack> localTracks)
If the generation of a preview was successful, information about the room joined and the tracks will be sent.
- Parameters:
room- details of the room the peer requested to join.localTracks- all local video and audio tracks that the peer might want to review before joining.
-
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
-
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
-
-
-
-