Interface CallbackMedia

  • All Known Implementing Classes:
    AbstractCallbackMedia, DefaultCallbackMedia, FileInputStreamMedia, NonSeekableCallbackMedia, NonSeekableInputStreamMedia, RandomAccessFileMedia, SeekableCallbackMedia

    public interface CallbackMedia
    Specification for media provided by native callbacks.

    Implementations are allowed to block the native thread when waiting for IO - however care must be taken, e.g. on error conditions, to not block indefinitely as doing so will prevent the native media player from being stopped.

    Implementations of this class by definition rely on the use of native callbacks that are implemented in Java code - steps must be taken to prevent instances of implementation classes from being garbage collected otherwise the native code will crash when the Java object disappears.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      uk.co.caprica.vlcj.binding.internal.libvlc_media_close_cb getClose()
      Get the native close media callback.
      com.sun.jna.Pointer getOpaque()
      Get the native opaque handle.
      uk.co.caprica.vlcj.binding.internal.libvlc_media_open_cb getOpen()
      Get the native open media callback.
      uk.co.caprica.vlcj.binding.internal.libvlc_media_read_cb getRead()
      Get the native read media callback.
      uk.co.caprica.vlcj.binding.internal.libvlc_media_seek_cb getSeek()
      Get the native seek media callback.
    • Method Detail

      • getOpen

        uk.co.caprica.vlcj.binding.internal.libvlc_media_open_cb getOpen()
        Get the native open media callback.
        Returns:
        open callback
      • getRead

        uk.co.caprica.vlcj.binding.internal.libvlc_media_read_cb getRead()
        Get the native read media callback.
        Returns:
        read callback
      • getSeek

        uk.co.caprica.vlcj.binding.internal.libvlc_media_seek_cb getSeek()
        Get the native seek media callback.
        Returns:
        seek callback
      • getClose

        uk.co.caprica.vlcj.binding.internal.libvlc_media_close_cb getClose()
        Get the native close media callback.
        Returns:
        close callback
      • getOpaque

        com.sun.jna.Pointer getOpaque()
        Get the native opaque handle.
        Returns:
        opaque handle