-
public interface VideoVideo 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.StatusgetStatus()Gets video status, which may be one of Media.Status abstract VideoViewcreateVideoView(Activity activity)Creates a new view that displays the video stream. abstract voidpause()Pauses the visitor camera capturing. abstract voidresume()Resumes the visitor camera capturing. abstract voidsetOnHoldHandler(@NonNull() Consumer<Boolean> listener)Handler used to detect if Visitor stream is put on hold or resumed from being put on hold by Operator. -
-
Method Detail
-
getStatus
abstract Media.Status getStatus()
Gets video status, which may be one of Media.Status
-
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.
-
-
-
-