public interface IVLCVout
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IVLCVout.Callback |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(IVLCVout.Callback callback)
Add a callback to receive
IVLCVout.Callback.onNewLayout(org.videolan.libvlc.IVLCVout, int, int, int, int, int, int) events. |
boolean |
areViewsAttached()
Return true if views are attached.
|
void |
attachViews()
Attach views previously set by setVideoView, setSubtitlesView, setVideoSurface, setSubtitleSurface
|
void |
detachViews()
Detach views previously attached.
|
void |
removeCallback(IVLCVout.Callback callback)
Remove a callback.
|
void |
sendMouseEvent(int action,
int button,
int x,
int y)
Send a mouse event to the native vout.
|
void |
setSubtitlesSurface(android.view.Surface subtitlesSurface,
android.view.SurfaceHolder surfaceHolder)
Set a surface used for subtitles out.
|
void |
setSubtitlesSurface(android.graphics.SurfaceTexture subtitlesSurfaceTexture)
Set a SurfaceTexture used for subtitles out.
|
void |
setSubtitlesView(android.view.SurfaceView subtitlesSurfaceView)
Set a surfaceView used for subtitles out.
|
void |
setSubtitlesView(android.view.TextureView subtitlesTextureView)
Set a TextureView used for subtitles out.
|
void |
setVideoSurface(android.view.Surface videoSurface,
android.view.SurfaceHolder surfaceHolder)
Set a surface used for video out.
|
void |
setVideoSurface(android.graphics.SurfaceTexture videoSurfaceTexture)
Set a SurfaceTexture used for video out.
|
void |
setVideoView(android.view.SurfaceView videoSurfaceView)
Set a surfaceView used for video out.
|
void |
setVideoView(android.view.TextureView videoTextureView)
Set a TextureView used for video out.
|
void |
setWindowSize(int width,
int height)
Send the the window size to the native vout.
|
void setVideoView(android.view.SurfaceView videoSurfaceView)
attachViews()void setVideoView(android.view.TextureView videoTextureView)
attachViews()void setVideoSurface(android.view.Surface videoSurface,
android.view.SurfaceHolder surfaceHolder)
videoSurface - if surfaceHolder is null, this surface must be valid and attached.surfaceHolder - optional, used to configure buffers geometry before Android ICS
and to get notified when surface is destroyed.attachViews()void setVideoSurface(android.graphics.SurfaceTexture videoSurfaceTexture)
videoSurfaceTexture - this surface must be valid and attached.attachViews()void setSubtitlesView(android.view.SurfaceView subtitlesSurfaceView)
attachViews()void setSubtitlesView(android.view.TextureView subtitlesTextureView)
attachViews()void setSubtitlesSurface(android.view.Surface subtitlesSurface,
android.view.SurfaceHolder surfaceHolder)
subtitlesSurface - if surfaceHolder is null, this surface must be valid and attached.surfaceHolder - optional, used to configure buffers geometry before Android ICS
and to get notified when surface is destroyed.attachViews()void setSubtitlesSurface(android.graphics.SurfaceTexture subtitlesSurfaceTexture)
subtitlesSurfaceTexture - this surface must be valid and attached.attachViews()void attachViews()
void detachViews()
boolean areViewsAttached()
void addCallback(IVLCVout.Callback callback)
IVLCVout.Callback.onNewLayout(org.videolan.libvlc.IVLCVout, int, int, int, int, int, int) events.void removeCallback(IVLCVout.Callback callback)
void sendMouseEvent(int action,
int button,
int x,
int y)
action - see ACTION_* in MotionEvent.button - see BUTTON_* in MotionEvent.x - x coordinate.y - y coordinate.void setWindowSize(int width,
int height)
width - width of the window.height - height of the window.