Package 

Interface OperatorMediaState

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

    
    public interface OperatorMediaState
     implements MediaState
                        

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

    Usage example:

     engagement.getMedia().on(Media.Events.OPERATOR_STATE_UPDATE, (operatorState) -> { runOnUiThread(() -> { if (operatorState.getAudio() != null) { // Operator is sharing audio } else { // Operator is not sharing audio } if (operatorState.getVideo() != null) { // Operator is sharing video } else { // Operator 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.
      abstract Audio getAudio() Can be used to play a streaming audio in the app.
      • 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.Is an instance of Video when Operator video is started, otherwise is {@code null}.

      • getAudio

         abstract Audio getAudio()

        Can be used to play a streaming audio in the app.Is an instance of Audio when Operator audio is started, otherwise is {@code null}.