Guaito
15 Sep 2010, 8:46 AM
Hy y'all, i've placed a video (HTML5 video tag) as one of many html elements passed to a Ext.Panel contentEl param.
This is the code:
onReady: function() {
var focusContent = new Ext.Panel ({
floating: true,
centered: true,
draggable: false,
modal: false,
width: 400,
height: 500,
scroll: 'vertical',
contentEl: 'content',
bodyMargin: false,
bodyBorder: false,
hideOnMaskTap: false
});
focusContent.show();
and the 'content' html code is:
<div id="content">
<div id="header">
<div class="logo"><img src="img/logo.png"></div>
</div>
<div id="container_video">
<!-- video player -->
<video id="framvid" src="video/test.mp4" controls="true" type="video/mp4" poster="img/test_video.jpg"></video>
</div>
<div class="other_content">
<p>Lorem ipsum...</p>
</div>
</div>
The problem (bug?) is that the video doesn't scroll along with the other stuff but it's 'blocked' at its starting position.
It works on Safari 4/5 and Chrome on PC/Mac, but not on iPad/iPhone with Safari Mobile, any solution?
Thanks in advance
This is the code:
onReady: function() {
var focusContent = new Ext.Panel ({
floating: true,
centered: true,
draggable: false,
modal: false,
width: 400,
height: 500,
scroll: 'vertical',
contentEl: 'content',
bodyMargin: false,
bodyBorder: false,
hideOnMaskTap: false
});
focusContent.show();
and the 'content' html code is:
<div id="content">
<div id="header">
<div class="logo"><img src="img/logo.png"></div>
</div>
<div id="container_video">
<!-- video player -->
<video id="framvid" src="video/test.mp4" controls="true" type="video/mp4" poster="img/test_video.jpg"></video>
</div>
<div class="other_content">
<p>Lorem ipsum...</p>
</div>
</div>
The problem (bug?) is that the video doesn't scroll along with the other stuff but it's 'blocked' at its starting position.
It works on Safari 4/5 and Chrome on PC/Mac, but not on iPad/iPhone with Safari Mobile, any solution?
Thanks in advance