Class CameraMotionRenderer

    • Constructor Detail

      • CameraMotionRenderer

        public CameraMotionRenderer()
        Deprecated.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Description copied from interface: Renderer
        Returns the name of this renderer, for logging and debugging purposes. Should typically be the renderer's (un-obfuscated) class name.
        Returns:
        The name of this renderer.
      • supportsFormat

        public @com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportsFormat​(Format format)
        Deprecated.
        Description copied from interface: RendererCapabilities
        Returns the extent to which the Renderer supports a given format.
        Parameters:
        format - The format.
        Returns:
        The RendererCapabilities.Capabilities for this format.
      • handleMessage

        public void handleMessage​(@com.google.android.exoplayer2.Renderer.MessageType int messageType,
                                  @Nullable
                                  Object message)
                           throws ExoPlaybackException
        Deprecated.
        Description copied from interface: PlayerMessage.Target
        Handles a message delivered to the target.
        Specified by:
        handleMessage in interface PlayerMessage.Target
        Overrides:
        handleMessage in class BaseRenderer
        Parameters:
        messageType - The message type.
        message - The message payload.
        Throws:
        ExoPlaybackException - If an error occurred whilst handling the message. Should only be thrown by targets that handle messages on the playback thread.
      • onPositionReset

        protected void onPositionReset​(long positionUs,
                                       boolean joining)
        Deprecated.
        Description copied from class: BaseRenderer
        Called when the position is reset. This occurs when the renderer is enabled after BaseRenderer.onStreamChanged(Format[], long, long) has been called, and also when a position discontinuity is encountered.

        After a position reset, the renderer's SampleStream is guaranteed to provide samples starting from a key frame.

        The default implementation is a no-op.

        Overrides:
        onPositionReset in class BaseRenderer
        Parameters:
        positionUs - The new playback position in microseconds.
        joining - Whether this renderer is being enabled to join an ongoing playback.
      • onDisabled

        protected void onDisabled()
        Deprecated.
        Description copied from class: BaseRenderer
        Called when the renderer is disabled.

        The default implementation is a no-op.

        Overrides:
        onDisabled in class BaseRenderer
      • isEnded

        public boolean isEnded()
        Deprecated.
        Description copied from interface: Renderer
        Whether the renderer is ready for the ExoPlayer instance to transition to Player.STATE_ENDED. The player will make this transition as soon as true is returned by all of its renderers.

        This method may be called when the renderer is in the following states: Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        Returns:
        Whether the renderer is ready for the player to transition to the ended state.
      • isReady

        public boolean isReady()
        Deprecated.
        Description copied from interface: Renderer
        Whether the renderer is able to immediately render media from the current position.

        If the renderer is in the Renderer.STATE_STARTED state then returning true indicates that the renderer has everything that it needs to continue playback. Returning false indicates that the player should pause until the renderer is ready.

        If the renderer is in the Renderer.STATE_ENABLED state then returning true indicates that the renderer is ready for playback to be started. Returning false indicates that it is not.

        This method may be called when the renderer is in the following states: Renderer.STATE_ENABLED, Renderer.STATE_STARTED.

        Returns:
        Whether the renderer is ready to render media.