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 TypeMethodDescriptionvoid
attach
(MediaPlayer mediaPlayer) Attach the video surface to a media player.final Component
Get 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
-
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
-