public class ComponentIdVideoSurface extends VideoSurface
This is required for example when using remote out-of-process media players but with video rendering in a local application. In these scenarios, it is not possible to serialize the Canvas component to the remote process to get the proper component ID (the copied Canvas component would have a different native ID).
It is also not possible to get a native component ID if the component is not displayable.
Constructor and Description |
---|
ComponentIdVideoSurface(long componentId,
VideoSurfaceAdapter videoSurfaceAdapter)
Create a new video surface.
|
public ComponentIdVideoSurface(long componentId, VideoSurfaceAdapter videoSurfaceAdapter)
componentId
- native component identifier for the video surfacevideoSurfaceAdapter
- adapter to attach a video surface to a native media playerpublic void attach(LibVlc libvlc, MediaPlayer mediaPlayer)
VideoSurface
attach
in class VideoSurface
libvlc
- native library interfacemediaPlayer
- media player instanceCopyright © 2009–2014 Caprica Software Limited. All rights reserved.