public abstract class AWindowNativeHandler
extends java.lang.Object
| Constructor and Description |
|---|
AWindowNativeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract android.view.Surface |
getSubtitlesSurface()
Get the valid Subtitles surface.
|
protected abstract android.view.Surface |
getVideoSurface()
Get the valid Video surface.
|
protected abstract void |
nativeOnMouseEvent(long nativeHandle,
int action,
int button,
int x,
int y)
Callback called from
IVLCVout.sendMouseEvent(int, int, int, int). |
protected abstract void |
nativeOnWindowSize(long nativeHandle,
int width,
int height)
Callback called from
IVLCVout.setWindowSize(int, int). |
protected abstract void |
sendHardwareAccelerationError()
TODO: temporary method, will be removed when VLC can handle decoder fallback
This call will result of
IVLCVout.Callback.onHardwareAccelerationError(org.videolan.libvlc.IVLCVout) being called from the main thread. |
protected abstract boolean |
setBuffersGeometry(android.view.Surface surface,
int width,
int height,
int format)
This method is only used for ICS and before since ANativeWindow_setBuffersGeometry doesn't work before.
|
protected abstract boolean |
setCallback(long nativeHandle)
Set a callback in order to receive
nativeOnMouseEvent(long, int, int, int, int) and nativeOnWindowSize(long, int, int) events. |
protected abstract void |
setWindowLayout(int width,
int height,
int visibleWidth,
int visibleHeight,
int sarNum,
int sarDen)
Set the window Layout.
|
protected abstract void nativeOnMouseEvent(long nativeHandle,
int action,
int button,
int x,
int y)
IVLCVout.sendMouseEvent(int, int, int, int).nativeHandle - handle passed by setCallback(long).action - see ACTION_* in MotionEvent.button - see BUTTON_* in MotionEvent.x - x coordinate.y - y coordinate.protected abstract void nativeOnWindowSize(long nativeHandle,
int width,
int height)
IVLCVout.setWindowSize(int, int).nativeHandle - handle passed by setCallback(long).width - width of the window.height - height of the window.protected abstract android.view.Surface getVideoSurface()
protected abstract android.view.Surface getSubtitlesSurface()
protected abstract boolean setCallback(long nativeHandle)
nativeOnMouseEvent(long, int, int, int, int) and nativeOnWindowSize(long, int, int) events.nativeHandle - native Handle passed by nativeOnMouseEvent(long, int, int, int, int) and nativeOnWindowSize(long, int, int)protected abstract boolean setBuffersGeometry(android.view.Surface surface,
int width,
int height,
int format)
surface - surface returned by getVideoSurface or getSubtitlesSurfacewidth - surface widthheight - surface heightformat - color format (or PixelFormat)protected abstract void setWindowLayout(int width,
int height,
int visibleWidth,
int visibleHeight,
int sarNum,
int sarDen)
IVLCVout.Callback.onNewLayout(org.videolan.libvlc.IVLCVout, int, int, int, int, int, int) being called from the main thread.width - Frame widthheight - Frame heightvisibleWidth - Visible frame widthvisibleHeight - Visible frame heightsarNum - Surface aspect ratio numeratorsarDen - Surface aspect ratio denominatorprotected abstract void sendHardwareAccelerationError()
IVLCVout.Callback.onHardwareAccelerationError(org.videolan.libvlc.IVLCVout) being called from the main thread.