Interface HMSPreviewListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      abstract Unit onRoomUpdate(HMSRoomUpdate type, HMSRoom hmsRoom) Called if there is any update related to the HMSRoom
      abstract Unit onPeerUpdate(HMSPeerUpdate type, HMSPeer peer) Called if there is any update related to the HMSPeer
      Unit peerListUpdated(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
    • Constructor Detail

    • 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.
      • 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

        Parameters:
        addedPeers - List of HMSPeer to be added to the list
        removedPeers - List of HMSPeer to be removed from the list