Module uk.co.caprica.vlcj
Class CallbackVideoSurface
java.lang.Object
uk.co.caprica.vlcj.player.embedded.videosurface.VideoSurface
uk.co.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface
Implementation of a video surface that uses native callbacks to receive video frame data for rendering.
-
Constructor Summary
ConstructorsConstructorDescriptionCallbackVideoSurface
(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers, VideoSurfaceAdapter videoSurfaceAdapter) Create a video surface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach
(MediaPlayer mediaPlayer) Attach the video surface to a media player.
-
Constructor Details
-
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 Details
-
attach
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
-