Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exoplayer not handling video orientation from video metadata #40

Closed
ryango opened this issue Sep 4, 2014 · 2 comments
Closed

exoplayer not handling video orientation from video metadata #40

ryango opened this issue Sep 4, 2014 · 2 comments

Comments

@ryango
Copy link

ryango commented Sep 4, 2014

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.

@ojw28
Copy link
Contributor

ojw28 commented Sep 4, 2014

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.

@ryango
Copy link
Author

ryango commented Sep 8, 2014

@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.

@ryango ryango closed this as completed Sep 8, 2014
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants