.. java:import:: android.content Context .. java:import:: android.opengl GLSurfaceView .. java:import:: org.webrtc VideoRenderer .. java:import:: org.webrtc VideoTrack .. java:import:: at.jumpch.sdk JCClient .. java:import:: at.jumpch.sdk JCVideoView .. java:import:: at.jumpch.utils JCVideoRenderer JCVideoView =========== .. java:package:: at.jumpch.sdk :noindex: .. java:type:: public class JCVideoView extends GLSurfaceView implements VideoRenderer.Callbacks Video view that renders the video stream. An instance is provided in the \ :java:ref:`JCClient.Callback.onVideoAdded(String,String,JCVideoView)`\ . Generally, creation of the object should never be done by the developer. Constructors ------------ JCVideoView ^^^^^^^^^^^ .. java:constructor:: public JCVideoView(Context context, String userid, String videoid, JCClient.Callback cb) :outertype: JCVideoView Creates a JCVideoView object. :param context: Application context :param userid: User id of the video view :param videoid: Video id that uniquely identifies the video. A user may have more than one video. :param cb: \ :java:ref:`JCClient.Callback`\ object provided to \ :java:ref:`JCClient`\ Methods ------- canApplyRotation ^^^^^^^^^^^^^^^^ .. java:method:: public boolean canApplyRotation() :outertype: JCVideoView id ^^ .. java:method:: public String id() :outertype: JCVideoView Returns the video id. A user may have multiple videos with a unique id. :return: video id of the view renderFrame ^^^^^^^^^^^ .. java:method:: public void renderFrame(VideoRenderer.I420Frame frame) :outertype: JCVideoView renderTrack ^^^^^^^^^^^ .. java:method:: public void renderTrack(VideoTrack videoTrack) :outertype: JCVideoView setMirror ^^^^^^^^^ .. java:method:: public void setMirror(boolean mirror) :outertype: JCVideoView userId ^^^^^^ .. java:method:: public String userId() :outertype: JCVideoView Returns the user id :return: user id of the view