if you have javascript available to you or some other scripting mechanism, have you tried to provide a video element and insert the element to the id attribute and access the DOM with javascript to set the attributes?
<body> <video id="myvideo" width="240" height="320" src="a.vp8"> <embed id="myvideoe" width="240" height="320" src="a.vp8"> </video> <script type="text/javascript"> if (window.screen.width < window.screen.height) { //portrait document.getElementById('myvideo').setAttribute('width', 240); document.getElementById('myvideo').setAttribute('height', 320); document.getElementById('myvideoe').setAttribute('width', 240); document.getElementById('myvideoe').setAttribute('height', 320); } else { //landscape document.getElementById('myvideo').setAttribute('width', 320); document.getElementById('myvideo').setAttribute('height', 240); document.getElementById('myvideoe').setAttribute('width', 320); document.getElementById('myvideoe').setAttribute('height', 240); } //or simply do this if you have differing size target screens: //you can always subtract out the space for the controls. document.getElementById('myvideo').setAttribute('width', window.screen.width); document.getElementById('myvideo').setAttribute('height', window.screen.height); document.getElementById('myvideoe').setAttribute('width', window.screen.width); document.getElementById('myvideoe').setAttribute('height', window.screen.height); </script> </body>
if you are talking about changing src to a completely different video, which is a landscape or portrait, which is also possible. I think this is only possible with PhoneGap, which provides javascript.
Jim michaels
source share