public interface

Video

com.glia.androidsdk.comms.Video

Class Overview

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);
 }
 

See Also

Summary

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.

Public Methods

public 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.
Throws
GliaException may have one of following causes:
NOT_MAIN_THREAD - in case this method was not called from Main/UI thread.

public abstract Media.Status getStatus ()

Gets video status, which may be one of Media.Status

public abstract void pause ()

Pauses the visitor camera capturing.

See Also

public abstract void resume ()

Resumes the visitor camera capturing.

See Also