]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/video/app.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / video / app.js
1 //<debug>
2 Ext.Loader.setPath({
3 'Ext': '../../src'
4 });
5 //</debug>
6
7 /**
8 * A demo application containing the Ext.Video component.
9 */
10 Ext.application({
11 startupImage: {
12 '320x460': 'resources/startup/Default.jpg', // Non-retina iPhone, iPod touch, and all Android devices
13 '640x920': 'resources/startup/640x920.png', // Retina iPhone and iPod touch
14 '640x1096': 'resources/startup/640x1096.png', // iPhone 5 and iPod touch (fifth generation)
15 '768x1004': 'resources/startup/768x1004.png', // Non-retina iPad (first and second generation) in portrait orientation
16 '748x1024': 'resources/startup/748x1024.png', // Non-retina iPad (first and second generation) in landscape orientation
17 '1536x2008': 'resources/startup/1536x2008.png', // : Retina iPad (third generation) in portrait orientation
18 '1496x2048': 'resources/startup/1496x2048.png' // : Retina iPad (third generation) in landscape orientation
19 },
20
21 isIconPrecomposed: false,
22 icon: {
23 57: 'resources/icons/icon.png',
24 72: 'resources/icons/icon@72.png',
25 114: 'resources/icons/icon@2x.png',
26 144: 'resources/icons/icon@144.png'
27 },
28
29 requires: [
30 'Ext.Panel',
31 'Ext.Video'
32 ],
33
34 launch: function() {
35 Ext.Viewport.add({
36 xtype: 'video',
37 url: [
38 'resources/media/BigBuck.m4v',
39 'resources/media/BigBuck.webm'
40 ],
41 loop: true,
42 posterUrl: 'resources/images/cover.jpg'
43 });
44 }
45 });