| OLD | NEW |
| 1 <meta name="doc-family" content="apps"> | 1 <meta name="doc-family" content="apps"> |
| 2 <h1>Build Apps with Sencha Ext JS</h1> | 2 <h1>Build Apps with Sencha Ext JS</h1> |
| 3 | 3 |
| 4 <p> | 4 <p> |
| 5 The goal of this doc is to get you started | 5 The goal of this doc is to get you started |
| 6 on building Chrome Apps with the | 6 on building Chrome Apps with the |
| 7 <a href="http://www.sencha.com/products/extjs">Sencha Ext JS</a> framework. | 7 <a href="http://www.sencha.com/products/extjs">Sencha Ext JS</a> framework. |
| 8 To achieve this goal, | 8 To achieve this goal, |
| 9 we will dive into a media player app built by Sencha. | 9 we will dive into a media player app built by Sencha. |
| 10 The <a href="https://github.com/GoogleChrome/sencha-video-player-app">source cod
e</a> | 10 The <a href="https://github.com/GoogleChrome/sencha-video-player-app">source cod
e</a> |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 var animEnd = function(e) { | 475 var animEnd = function(e) { |
| 476 | 476 |
| 477 //show body el | 477 //show body el |
| 478 mediaBody.style.display = ''; | 478 mediaBody.style.display = ''; |
| 479 | 479 |
| 480 //play media | 480 //play media |
| 481 mediaEl.play(); | 481 mediaEl.play(); |
| 482 | 482 |
| 483 //clear listeners | 483 //clear listeners |
| 484 playerCt.removeEventListener( 'webkitTransitionEnd', animEnd, false ); | 484 playerCt.removeEventListener( 'transitionend', animEnd, false ); |
| 485 animEnd = null; | 485 animEnd = null; |
| 486 }; | 486 }; |
| 487 | 487 |
| 488 //load media | 488 //load media |
| 489 mediaEl.src = url; | 489 mediaEl.src = url; |
| 490 mediaEl.load(); | 490 mediaEl.load(); |
| 491 | 491 |
| 492 //animate in player | 492 //animate in player |
| 493 playerCt.addEventListener( 'webkitTransitionEnd', animEnd, false ); | 493 playerCt.addEventListener( 'transitionend', animEnd, false ); |
| 494 playerCt.style.webkitTransform = "translateY(0)"; | 494 playerCt.style.transform = "translateY(0)"; |
| 495 | 495 |
| 496 //reply postmessage | 496 //reply postmessage |
| 497 data.result = true; | 497 data.result = true; |
| 498 sendMessage(data); | 498 sendMessage(data); |
| 499 } | 499 } |
| 500 </pre> | 500 </pre> |
| 501 | 501 |
| 502 <h2 id="seven">Save media offline</h2> | 502 <h2 id="seven">Save media offline</h2> |
| 503 | 503 |
| 504 <p> | 504 <p> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 } | 569 } |
| 570 ); | 570 ); |
| 571 </pre> | 571 </pre> |
| 572 | 572 |
| 573 <p> | 573 <p> |
| 574 When the download process is finished, | 574 When the download process is finished, |
| 575 <code>MediaExplorer</code> updates the media file list and the media player tree
panel. | 575 <code>MediaExplorer</code> updates the media file list and the media player tree
panel. |
| 576 </p> | 576 </p> |
| 577 | 577 |
| 578 <p class="backtotop"><a href="#top">Back to top</a></p> | 578 <p class="backtotop"><a href="#top">Back to top</a></p> |
| OLD | NEW |