Interface IVLCVout

  • All Known Implementing Classes:
    AWindow

    public interface IVLCVout
    • Method Detail

      • setVideoView

        @MainThread
        void setVideoView​(SurfaceView videoSurfaceView)
        Set a surfaceView used for video out.
        See Also:
        attachViews()
      • setVideoView

        @MainThread
        void setVideoView​(TextureView videoTextureView)
        Set a TextureView used for video out.
        See Also:
        attachViews()
      • setVideoSurface

        @MainThread
        void setVideoSurface​(Surface videoSurface,
                             SurfaceHolder surfaceHolder)
        Set a surface used for video out.
        Parameters:
        videoSurface - if surfaceHolder is null, this surface must be valid and attached.
        surfaceHolder - optional, used to configure buffers geometry before Android ICS and to get notified when surface is destroyed.
        See Also:
        attachViews()
      • setVideoSurface

        @MainThread
        void setVideoSurface​(SurfaceTexture videoSurfaceTexture)
        Set a SurfaceTexture used for video out.
        Parameters:
        videoSurfaceTexture - this surface must be valid and attached.
        See Also:
        attachViews()
      • setSubtitlesView

        @MainThread
        void setSubtitlesView​(SurfaceView subtitlesSurfaceView)
        Set a surfaceView used for subtitles out.
        See Also:
        attachViews()
      • setSubtitlesView

        @MainThread
        void setSubtitlesView​(TextureView subtitlesTextureView)
        Set a TextureView used for subtitles out.
        See Also:
        attachViews()
      • setSubtitlesSurface

        @MainThread
        void setSubtitlesSurface​(Surface subtitlesSurface,
                                 SurfaceHolder surfaceHolder)
        Set a surface used for subtitles out.
        Parameters:
        subtitlesSurface - if surfaceHolder is null, this surface must be valid and attached.
        surfaceHolder - optional, used to configure buffers geometry before Android ICS and to get notified when surface is destroyed.
        See Also:
        attachViews()
      • setSubtitlesSurface

        @MainThread
        void setSubtitlesSurface​(SurfaceTexture subtitlesSurfaceTexture)
        Set a SurfaceTexture used for subtitles out.
        Parameters:
        subtitlesSurfaceTexture - this surface must be valid and attached.
        See Also:
        attachViews()
      • detachViews

        @MainThread
        void detachViews()
        Detach views previously attached. This will be called automatically when surfaces are destroyed.
      • areViewsAttached

        @MainThread
        boolean areViewsAttached()
        Return true if views are attached. If surfaces were destroyed, this will return false.
      • removeCallback

        @MainThread
        void removeCallback​(IVLCVout.Callback callback)
        Remove a callback.
      • sendMouseEvent

        @MainThread
        void sendMouseEvent​(int action,
                            int button,
                            int x,
                            int y)
        Send a mouse event to the native vout.
        Parameters:
        action - see ACTION_* in MotionEvent.
        button - see BUTTON_* in MotionEvent.
        x - x coordinate.
        y - y coordinate.
      • setWindowSize

        @MainThread
        void setWindowSize​(int width,
                           int height)
        Send the the window size to the native vout.
        Parameters:
        width - width of the window.
        height - height of the window.