I'm presently assembling an app that will load a mobile-friendly version of our website. I would like the user to be able to use the device in either orientation at a fixed 1.0 zoom level. This presents a problem due to the requirement that video embed maintain a minimum height of 200px, since the device is providing 320 dip as a width in the portrait orientation, and that seems to be pretty standard. With 16:9 content, the minimum height would be about 169px when accounting for some minimal padding/margins around the player. It looks fine if using a quality level of medium or higher; it just doesn't comply with YouTube's terms. What are my options here? What are other developers doing? Are we simply not able to embed YouTube content on pages viewed in portrait mode without scaling? I guess I could change the zoom level in portrait mode using some javascript, but then I'm scaling down other elements that I'd really rather not resize. I could force the player to be 200px tall, but that would look lousy when all of the content is 16:9. --
Starting October 15, 2012, this group will stop accepting new posts. We recommend that developers start using Stack Overflow and the Issue Tracker for YouTube API support. More details about this change and relevant links can be found at http://apiblog.youtube.com/2012/09/the-youtube-api-on-stack-overflow.html
No comments:
Post a Comment