ExoPlayer
ExoPlayer copied to clipboard
How can I get the camera angle from SphericalGLSurfaceView?
I'm trying to build a camera angle indicator for a 360º video, in other words, showing the direction a user is looking at when panning.

In Swifty360Player for iOS, I have the [compassAngle], does ExoPlayer has something similar?(https://github.com/abdullahselek/Swifty360Player/blob/master/Swifty360Player/Swifty360CameraController.swift#L171)
Not entirely sure which value you'd need, but it's likely the deviceRoll
value here: https://github.com/google/ExoPlayer/blob/ab4d37f499ba49bb3cac7938eb03ebf7133ccfe6/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/SphericalGLSurfaceView.java#L279
There isn't a way to retrieve this value at the moment, but happy to accept PRs if you like to send one.
@tonihei Hey! Could you please tell how this value will help to find out the angle of the camera? what is the connection between deviceRoll
value and direction?