Interface ExoPlayer.VideoComponent

  • All Known Implementing Classes:
    SimpleExoPlayer
    Enclosing interface:
    ExoPlayer

    public static interface ExoPlayer.VideoComponent
    The video component of an ExoPlayer.
    • Method Detail

      • setVideoFrameMetadataListener

        void setVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
        Sets a listener to receive video frame metadata events.

        This method is intended to be called by the same component that sets the Surface onto which video will be rendered. If using ExoPlayer's standard UI components, this method should not be called directly from application code.

        Parameters:
        listener - The listener.
      • clearVideoFrameMetadataListener

        void clearVideoFrameMetadataListener​(VideoFrameMetadataListener listener)
        Clears the listener which receives video frame metadata events if it matches the one passed. Else does nothing.
        Parameters:
        listener - The listener to clear.
      • setCameraMotionListener

        void setCameraMotionListener​(CameraMotionListener listener)
        Sets a listener of camera motion events.
        Parameters:
        listener - The listener.
      • clearCameraMotionListener

        void clearCameraMotionListener​(CameraMotionListener listener)
        Clears the listener which receives camera motion events if it matches the one passed. Else does nothing.
        Parameters:
        listener - The listener to clear.
      • clearVideoSurface

        void clearVideoSurface​(@Nullable
                               Surface surface)
        Clears the Surface onto which video is being rendered if it matches the one passed. Else does nothing.
        Parameters:
        surface - The surface to clear.
      • clearVideoSurfaceHolder

        void clearVideoSurfaceHolder​(@Nullable
                                     SurfaceHolder surfaceHolder)
        Clears the SurfaceHolder that holds the Surface onto which video is being rendered if it matches the one passed. Else does nothing.
        Parameters:
        surfaceHolder - The surface holder to clear.
      • setVideoSurfaceView

        void setVideoSurfaceView​(@Nullable
                                 SurfaceView surfaceView)
        Sets the SurfaceView onto which video will be rendered. The player will track the lifecycle of the surface automatically.

        The thread that calls the SurfaceHolder.Callback methods must be the thread associated with Player.getApplicationLooper().

        Parameters:
        surfaceView - The surface view.
      • clearVideoSurfaceView

        void clearVideoSurfaceView​(@Nullable
                                   SurfaceView surfaceView)
        Clears the SurfaceView onto which video is being rendered if it matches the one passed. Else does nothing.
        Parameters:
        surfaceView - The texture view to clear.
      • clearVideoTextureView

        void clearVideoTextureView​(@Nullable
                                   TextureView textureView)
        Clears the TextureView onto which video is being rendered if it matches the one passed. Else does nothing.
        Parameters:
        textureView - The texture view to clear.