Package 

Interface VisitorMediaState

  • All Implemented Interfaces:
    com.glia.androidsdk.comms.MediaState

    
    public interface VisitorMediaState
     implements MediaState
                        

    Object that represents Visitor media state. It is used as part of Media.Events.

    Usage example:

     engagement.getMedia().on(Media.Events.VISITOR_STATE_UPDATE, (visitorState) -> { runOnUiThread(() -> { if (visitorState.getAudio() != null) { // Visitor is sharing audio } else { // Visitor is not sharing audio } if (visitorState.getVideo() != null) { // Visitor is sharing video } else { // Visitor is not sharing video } }); }); 
    
    • Method Summary

      Modifier and Type Method Description
      abstract Video getVideo() Can be used to display a streaming video in the app and view its state.
      abstract Audio getAudio() Can be used to view streaming audio state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getVideo

         abstract Video getVideo()

        Can be used to display a streaming video in the app and view its state.Is an instance of Video when Visitor video is started, otherwise is {@code null}.

      • getAudio

         abstract Audio getAudio()

        Can be used to view streaming audio state.Is an instance of Audio when Visitor audio is started, otherwise is {@code null}.