1
我想为Sench Touch iOS应用程序显示HTML5视频作为启动画面。我使用下面的代码:作为Sench Touch iOS应用程序启动画面的HTML5视频
的Index.html:
<video id="splashScreen" autoplay="autoplay" width="100%" height="100%"
src="train.mp4" type="video/mp4"></video>
<script type="text/javascript">
function embedVideo() {
var el = document.getElementById('splashScreen');
el.src= "train.mp4";
el.load();
}
</script>
而且在App.js:
launch: function() {
var task = Ext.create('Ext.util.DelayedTask', function() {
Ext.fly('splashScreen').destroy();
});
task.delay(4000);
Ext.Viewport.add(Ext.create('TEC.view.Main'));
}
它显示播放控制,我不希望它被显示,并且它也不会在4秒后显示我的下一个屏幕(主),因为我希望它在4秒后被破坏。
请帮忙。