Interface CameraMotionListener

  • @Deprecated
    public interface CameraMotionListener
    Deprecated. is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Listens camera motion.
    • Method Detail

      • onCameraMotion

        void onCameraMotion​(long timeUs,
                            float[] rotation)
        Called when a new camera motion is read. This method is called on the playback thread.
        timeUs - The presentation time of the data.
        rotation - Angle axis orientation in radians representing the rotation from camera coordinate system to world coordinate system.
      • onCameraMotionReset

        void onCameraMotionReset()
        Called when the camera motion track position is reset or the track is disabled.