-
public interface IVLCVout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
IVLCVout.OnNewVideoLayoutListener
public interface
IVLCVout.Callback
-
Method Summary
Modifier and Type Method Description abstract void
setVideoView(SurfaceView videoSurfaceView)
Set a surfaceView used for video out. abstract void
setVideoView(TextureView videoTextureView)
Set a TextureView used for video out. abstract void
setVideoSurface(Surface videoSurface, SurfaceHolder surfaceHolder)
Set a surface used for video out. abstract void
setVideoSurface(SurfaceTexture videoSurfaceTexture)
Set a SurfaceTexture used for video out. abstract void
setSubtitlesView(SurfaceView subtitlesSurfaceView)
Set a surfaceView used for subtitles out. abstract void
setSubtitlesView(TextureView subtitlesTextureView)
Set a TextureView used for subtitles out. abstract void
setSubtitlesSurface(Surface subtitlesSurface, SurfaceHolder surfaceHolder)
Set a surface used for subtitles out. abstract void
setSubtitlesSurface(SurfaceTexture subtitlesSurfaceTexture)
Set a SurfaceTexture used for subtitles out. abstract void
attachViews(IVLCVout.OnNewVideoLayoutListener onNewVideoLayoutListener)
Attach views with an OnNewVideoLayoutListenerThis must be called afters views are set and before the MediaPlayer is first started.If onNewVideoLayoutListener is not null, the caller will handle the video layout that isneeded by the "android-display" "vout display" module. abstract void
attachViews()
Attach views without an OnNewVideoLayoutListener abstract void
detachViews()
Detach views previously attached.This will be called automatically when surfaces are destroyed. abstract boolean
areViewsAttached()
Return true if views are attached. abstract void
addCallback(IVLCVout.Callback callback)
Add a callback to receive onSurfacesCreated and onSurfacesDestroyed events. abstract void
removeCallback(IVLCVout.Callback callback)
Remove a callback. abstract void
sendMouseEvent(int action, int button, int x, int y)
Send a mouse event to the native vout. abstract void
setWindowSize(int width, int height)
Send the the window size to the native vout. -
-
Method Detail
-
setVideoView
@MainThread() abstract void setVideoView(SurfaceView videoSurfaceView)
Set a surfaceView used for video out.
-
setVideoView
@MainThread() abstract void setVideoView(TextureView videoTextureView)
Set a TextureView used for video out.
-
setVideoSurface
@MainThread() abstract void setVideoSurface(Surface videoSurface, SurfaceHolder surfaceHolder)
Set a surface used for video out.
- Parameters:
videoSurface
- if surfaceHolder is null, this surface must be valid and attached.surfaceHolder
- optional, used to configure buffers geometry before Android ICSand to get notified when surface is destroyed.
-
setVideoSurface
@MainThread() abstract void setVideoSurface(SurfaceTexture videoSurfaceTexture)
Set a SurfaceTexture used for video out.
- Parameters:
videoSurfaceTexture
- this surface must be valid and attached.
-
setSubtitlesView
@MainThread() abstract void setSubtitlesView(SurfaceView subtitlesSurfaceView)
Set a surfaceView used for subtitles out.
-
setSubtitlesView
@MainThread() abstract void setSubtitlesView(TextureView subtitlesTextureView)
Set a TextureView used for subtitles out.
-
setSubtitlesSurface
@MainThread() abstract void setSubtitlesSurface(Surface subtitlesSurface, SurfaceHolder surfaceHolder)
Set a surface used for subtitles out.
- Parameters:
subtitlesSurface
- if surfaceHolder is null, this surface must be valid and attached.surfaceHolder
- optional, used to configure buffers geometry before Android ICSand to get notified when surface is destroyed.
-
setSubtitlesSurface
@MainThread() abstract void setSubtitlesSurface(SurfaceTexture subtitlesSurfaceTexture)
Set a SurfaceTexture used for subtitles out.
- Parameters:
subtitlesSurfaceTexture
- this surface must be valid and attached.
-
attachViews
@MainThread() abstract void attachViews(IVLCVout.OnNewVideoLayoutListener onNewVideoLayoutListener)
Attach views with an OnNewVideoLayoutListenerThis must be called afters views are set and before the MediaPlayer is first started.If onNewVideoLayoutListener is not null, the caller will handle the video layout that isneeded by the "android-display" "vout display" module. Even if that case, the OpenGL ES2could still be used.If onNewVideoLayoutListener is null, the caller won't handle the video layout that isneeded by the "android-display" "vout display" module. Therefore, only the OpenGL ES2"vout display" module will be used (for hardware and software decoding).
-
attachViews
@MainThread() abstract void attachViews()
Attach views without an OnNewVideoLayoutListener
-
detachViews
@MainThread() abstract void detachViews()
Detach views previously attached.This will be called automatically when surfaces are destroyed.
-
areViewsAttached
@MainThread() abstract boolean areViewsAttached()
Return true if views are attached. If surfaces were destroyed, this will return false.
-
addCallback
@MainThread() abstract void addCallback(IVLCVout.Callback callback)
Add a callback to receive onSurfacesCreated and onSurfacesDestroyed events.
-
removeCallback
@MainThread() abstract void removeCallback(IVLCVout.Callback callback)
Remove a callback.
-
sendMouseEvent
@MainThread() abstract void sendMouseEvent(int action, int button, int x, int y)
Send a mouse event to the native vout.
- Parameters:
action
- see ACTION_* in android.view.MotionEvent.button
- see BUTTON_* in android.view.MotionEvent.x
- x coordinate.y
- y coordinate.
-
setWindowSize
@MainThread() abstract void setWindowSize(int width, int height)
Send the the window size to the native vout.
- Parameters:
width
- width of the window.height
- height of the window.
-
-
-
-