JCVideoView

public class JCVideoView extends GLSurfaceView implements VideoRenderer.Callbacks

Video view that renders the video stream. An instance is provided in the JCClient.Callback.onVideoAdded(String,String,JCVideoView).

Generally, creation of the object should never be done by the developer.

Constructors

JCVideoView

public JCVideoView(Context context, String userid, String videoid, JCClient.Callback cb)

Creates a JCVideoView object.

Parameters:
  • context – Application context
  • userid – User id of the video view
  • videoid – Video id that uniquely identifies the video. A user may have more than one video.
  • cbJCClient.Callback object provided to JCClient

Methods

canApplyRotation

public boolean canApplyRotation()

id

public String id()

Returns the video id. A user may have multiple videos with a unique id.

Returns:video id of the view

renderFrame

public void renderFrame(VideoRenderer.I420Frame frame)

renderTrack

public void renderTrack(VideoTrack videoTrack)

setMirror

public void setMirror(boolean mirror)

userId

public String userId()

Returns the user id

Returns:user id of the view