bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.32k stars 156 forks source link

Videos with Rotation Metadata #155

Closed jrking4 closed 5 years ago

jrking4 commented 5 years ago

When adding videos to the player, if the video came from a mobile device, they sometimes have rotation metadata stored in their file. Browser html5 video elements seem to automatically orientate the videos. however they dont seem to be automatically orientated on the canvas.

PTaylour commented 5 years ago

We're likely having the same issue as this https://github.com/bfred-it/video-canvas/issues/1

PTaylour commented 5 years ago

Could be tough as it looks like we don't have access to the rotation metadata in javascript

https://github.com/mrdoob/three.js/issues/13671#issuecomment-379705544

PTaylour commented 5 years ago

The first thread has a couple of suggestions of how to make do with that as a limitation, although it only covers a few use-cases

PTaylour commented 5 years ago

I'm not sure there is much we can do on this at the moment. I'm open for re-openning in the future.