Package 

Interface Video


  • 
    public interface Video
    
                        

    Video information, also provides an ability to display video from a camera in the app.

    For example:

     Video video = operatorMediaState != null ? operatorMediaState.getVideo() : null; if (video != null && video.getStatus() == Media.Status.PLAYING) { VideoView operatorVideo = video.createVideoView(thisActivity); FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); thisActivity.addContentView(operatorVideo, layoutParams); } 
    • Method Summary

      Modifier and Type Method Description
      abstract Media.Status getStatus() Gets video status, which may be one of Media.Status
      abstract VideoView createVideoView(Activity activity) Creates a new view that displays the video stream.
      abstract void pause() Pauses the visitor camera capturing.
      abstract void resume() Resumes the visitor camera capturing.
      abstract void setOnHoldHandler(@NonNull() Consumer<Boolean> listener) Handler used to detect if Visitor stream is put on hold or resumed from being put on hold by Operator.
      • Methods inherited from class java.lang.Object

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

      • createVideoView

         abstract VideoView createVideoView(Activity activity)

        Creates a new view that displays the video stream. This method should be called on the Main Thread.

        Parameters:
        activity - Activity on which you want to use this video view.
      • pause

         abstract void pause()

        Pauses the visitor camera capturing.

      • resume

         abstract void resume()

        Resumes the visitor camera capturing.

      • setOnHoldHandler

         abstract void setOnHoldHandler(@NonNull() Consumer<Boolean> listener)

        Handler used to detect if Visitor stream is put on hold or resumed from being put on hold by Operator.