Back to Exoplayer

CameraMotionListener (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/video/spherical/CameraMotionListener.html

latest1.7 KB
Original Source

Package com.google.android.exoplayer2.video.spherical

Interface CameraMotionListener


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceCameraMotionListener

Deprecated. com.google.android.exoplayer2 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 Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onCameraMotion​(long timeUs, float[] rotation) | Deprecated.

Called when a new camera motion is read. | | void | onCameraMotionReset() | Deprecated.

Called when the camera motion track position is reset or the track is disabled. |

Method Detail

- 

onCameraMotion

void onCameraMotion​(long timeUs,
                    float[] rotation)

Deprecated.

Called when a new camera motion is read. This method is called on the playback thread. Parameters: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()

Deprecated.

Called when the camera motion track position is reset or the track is disabled.