| com.glia.androidsdk.comms.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);
}
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract VideoView |
createVideoView(Activity activity)
Creates a new view that displays the video stream.
| ||||||||||
| abstract Media.Status |
getStatus()
Gets video status, which may be one of
Media.Status
| ||||||||||
| abstract void |
pause()
Pauses the visitor camera capturing.
| ||||||||||
| abstract void |
resume()
Resumes the visitor camera capturing.
| ||||||||||
Creates a new view that displays the video stream. This method should be called on the Main Thread.
| activity | Activity on which you want to use this video view. |
|---|
| GliaException | may have one of following causes:
NOT_MAIN_THREAD - in case this method was not called from Main/UI thread.
|
|---|