You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MediaPlayer handles playing videos filmed in portrait mode without issue, playing them with the proper orientation. ExoPlayer with the provided MediaCodecVideoTrackRender does not. Wish I could set an orientation hint with the MediaMetadataRetriever. I guess I can create my own GLSurfaceView and adjust this onDraw, but this is certainly not ideal.
The text was updated successfully, but these errors were encountered:
Using a TextureView would probably let you do this pretty easily.
I'm not sure if it can be done in MediaCodecVideoTrackRenderer, since I can't see any underlying support in the MediaCodec or Surface to do it. If you know of a way to add this, please let me know.
@ojw28 really good suggestion. Thanks. You're right that it would be hard to do that within the track renderer. I ended up wrapping the ExoPlayer functionality in a TextureView kinda like how VideoView wraps MediaPlayer functionality. I handle the transform there.
MediaPlayer handles playing videos filmed in portrait mode without issue, playing them with the proper orientation. ExoPlayer with the provided MediaCodecVideoTrackRender does not. Wish I could set an orientation hint with the MediaMetadataRetriever. I guess I can create my own GLSurfaceView and adjust this onDraw, but this is certainly not ideal.
The text was updated successfully, but these errors were encountered: