Class VideoSurfaceApi

java.lang.Object
uk.co.caprica.vlcj.factory.VideoSurfaceApi

public final class VideoSurfaceApi extends Object
Behaviour pertaining to the creation of video surfaces.
  • Method Details

    • newVideoSurface

      public ComponentVideoSurface newVideoSurface(Component component)
      Create a new video surface for a Component.

      The optimal component in a Canvas, Window can be used, as can any other AWT Component, at least in principle.

      Parameters:
      component - component
      Returns:
      video surface
    • newVideoSurface

      public ComponentIdVideoSurface newVideoSurface(long componentId)
      Create a new video surface for a native component id.
      Parameters:
      componentId - native component id
      Returns:
      video surface
    • newVideoSurface

      public CallbackVideoSurface newVideoSurface(BufferFormatCallback bufferFormatCallback, RenderCallback renderCallback, boolean lockBuffers)
      Create a new video surface for "direct" rendering via callbacks.
      Parameters:
      bufferFormatCallback - buffer format callback
      renderCallback - render callback
      lockBuffers - true if the video buffer should be locked; false if it should not
      Returns:
      video surface