public class AndroidVideoWindowImpl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AndroidVideoWindowImpl.VideoWindowListener
Utility listener interface providing callback for Android events
useful to Mediastreamer.
|
Constructor and Description |
---|
AndroidVideoWindowImpl(android.view.SurfaceView renderingSurface,
android.view.SurfaceView previewSurface)
Deprecated.
Use the new constructor instead
|
AndroidVideoWindowImpl(android.view.SurfaceView renderingSurface,
android.view.SurfaceView previewSurface,
AndroidVideoWindowImpl.VideoWindowListener listener)
Constructor
|
Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
getBitmap() |
android.view.SurfaceView |
getPreviewSurfaceView() |
android.view.Surface |
getSurface() |
void |
init()
Deprecated.
It is now automatically called by the new constructor
|
void |
release() |
void |
requestRender() |
static int |
rotationToAngle(int r) |
void |
setListener(AndroidVideoWindowImpl.VideoWindowListener l)
Deprecated.
Specify pass a listener to the constructor instead.
|
void |
setOpenGLESDisplay(long ptr) |
void |
update() |
public AndroidVideoWindowImpl(android.view.SurfaceView renderingSurface, android.view.SurfaceView previewSurface, AndroidVideoWindowImpl.VideoWindowListener listener)
renderingSurface
- Surface created by the application that will be used to render decoded video streampreviewSurface
- Surface created by the application used by Android's Camera preview frameworklistener
- Specified a listener. null is acceptedpublic AndroidVideoWindowImpl(android.view.SurfaceView renderingSurface, android.view.SurfaceView previewSurface)
renderingSurface
- Surface created by the application that will be used to render decoded video streampreviewSurface
- Surface created by the application used by Android's Camera preview frameworkpublic void init()
public void release()
public void setListener(AndroidVideoWindowImpl.VideoWindowListener l)
l
- A listenerpublic android.view.Surface getSurface()
public android.view.SurfaceView getPreviewSurfaceView()
public android.graphics.Bitmap getBitmap()
public void setOpenGLESDisplay(long ptr)
public void requestRender()
public void update()
public static int rotationToAngle(int r)