Class CallbackVideoSurface
- java.lang.Object
-
- uk.co.caprica.vlcj.player.embedded.videosurface.VideoSurface
-
- uk.co.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface
-
public class CallbackVideoSurface extends VideoSurface
Implementation of a video surface that uses native callbacks to receive video frame data for rendering.
-
-
Constructor Summary
Constructors Constructor Description CallbackVideoSurface(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers, VideoSurfaceAdapter videoSurfaceAdapter)
Create a video surface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attach(MediaPlayer mediaPlayer)
Attach the video surface to a media player.
-
-
-
Constructor Detail
-
CallbackVideoSurface
public CallbackVideoSurface(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers, VideoSurfaceAdapter videoSurfaceAdapter)
Create a video surface.- Parameters:
bufferFormatCallback
- callback providing the video buffer formatrenderCallback
- callback used to render the video frame bufferlockBuffers
-true
if the video buffer should be locked;false
if notvideoSurfaceAdapter
- adapter to attach a video surface to a native media player
-
-
Method Detail
-
attach
public void attach(MediaPlayer mediaPlayer)
Description copied from class:VideoSurface
Attach the video surface to a media player.The video surface component must be visible at this point otherwise the native call will fail.
- Specified by:
attach
in classVideoSurface
- Parameters:
mediaPlayer
- media player instance
-
-