public class GLVideoRender
extends java.lang.Object
implements android.opengl.GLSurfaceView.Renderer
| Constructor and Description |
|---|
GLVideoRender(PlayNotify playNotify,
boolean GPUFormatConvert) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
getBitmap() |
YYRenderFrameBuffer |
getRenderFrameBuffer() |
VideoConstant.ScaleMode |
getScaleMode() |
void |
init(PlayNotify playNotify,
boolean GPUFormatConvert) |
void |
linkToStream(long userGroupId,
long streamId) |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config) |
void |
release() |
void |
setOrientation(YSpVideoView.OrientationType orientationType,
int rotateAngle,
boolean adjustImmediately) |
boolean |
setScaleMode(VideoConstant.ScaleMode scaleMode) |
void |
stopRender() |
void |
unLinkFromStream(long userGroupId,
long streamId) |
public GLVideoRender(PlayNotify playNotify, boolean GPUFormatConvert)
public void init(PlayNotify playNotify, boolean GPUFormatConvert)
public android.graphics.Bitmap getBitmap()
public boolean setScaleMode(VideoConstant.ScaleMode scaleMode)
public VideoConstant.ScaleMode getScaleMode()
public void setOrientation(YSpVideoView.OrientationType orientationType, int rotateAngle, boolean adjustImmediately)
public void linkToStream(long userGroupId,
long streamId)
public void unLinkFromStream(long userGroupId,
long streamId)
public YYRenderFrameBuffer getRenderFrameBuffer()
public void release()
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in interface android.opengl.GLSurfaceView.Rendererpublic void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.Rendererpublic void stopRender()
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in interface android.opengl.GLSurfaceView.Renderer