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 TypeMethodDescriptionvoidattach(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-trueif the video buffer should be locked;falseif notvideoSurfaceAdapter- adapter to attach a video surface to a native media player
-
-
Method Details
-
attach
Description copied from class:VideoSurfaceAttach 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:
attachin classVideoSurface- Parameters:
mediaPlayer- media player instance
-