Module uk.co.caprica.vlcj
Class ComponentVideoSurface
java.lang.Object
uk.co.caprica.vlcj.player.embedded.videosurface.VideoSurface
uk.co.caprica.vlcj.player.embedded.videosurface.ComponentVideoSurface
Encapsulation of a video surface that uses an AWT Component (optimally a Canvas, or maybe a Window).
-
Constructor Summary
ConstructorsConstructorDescriptionComponentVideoSurface(Component component, VideoSurfaceAdapter videoSurfaceAdapter) Create a new video surface. -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(MediaPlayer mediaPlayer) Attach the video surface to a media player.final ComponentGet the canvas.
-
Constructor Details
-
ComponentVideoSurface
Create a new video surface.- Parameters:
component- video surface componentvideoSurfaceAdapter- adapter to attach a video surface to a native media player
-
-
Method Details
-
component
Get the canvas.- Returns:
- canvas
-
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
-