Ext

ExtPlayer – An MP3 Player developed with Adobe AIR and Ext JS

November 24, 2008 by Aaron Conran

In collaboration with Adobe, Ext is releasing several new enhancements to the Ext.air package today. These include improvements to existing classes responsible for Sounds, Windowing and Database as well as new classes responsible for Notification, Clipboard and File System Interaction. We have also added new samples demonstrating how to use these new features. One of these examples is ExtPlayer, a simple MP3 player, that leverages the new Ext.air.MusicPlayer and Ext.air.Notify classes. You can install ExtPlayer or download the source.

Ext.air.MusicPlayer

Ext 2.0.2 introduced an Ext.air.Sound class, which is useful for playing small sounds such as beep and chimes. In contrast, Ext.air.MusicPlayer is meant for long running sounds such as music and podcasts which you would never want multiple files playing at the same time. MusicPlayer supports all of the basic operations, stop, pause, play and skipTo along with supporting events. The MusicPlayer enables the developer to add music and podcasts to their AIR-enabled Ext application very quickly.

var mp = new Ext.air.MusicPlayer();
mp.adjustVolume(0.5);
mp.play(url);


Ext.air.Notify

The new notification class allows you to notify your users with toast or growl-like messages from the operating system. This allows you to notify users that something important has occurred even when your application may not be visible. By displaying these notifications at the operating system level it is sure to get the users attention without being lost within a browser tab.

var msg = 'Title: {0}<br/>Artist: {1}';
var sample = new Ext.air.Notify({
    msg: String.format(msg, id3info.songName, id3info.artist),
    icon: '../famfamfam/music.png'
});



Window and App API’s

We added methods and configurations for common window manipulation tasks that did not already exist. Ext.air.NativeWindow now exposes methods to re-order windows, set a window as always on top, and enable full-screen mode. A new singleton, Ext.air.App will allow you to set your application to start on login and get the currently active window.

Ext.air.App.launchOnStartup(true);


Ext.air.Clipboard

Ext.air.Clipboard allows you to interact with the system’s clipboard. Developers can determine if a particular format has data, set the data and get the data. At this point, this is largely a pass through to an existing class from Adobe air.Clipboard.generalClipboard. There may be enhancements or workarounds which Ext will add in the future including integration with drag and drop.

Ext.air.Clipboard.setData('air:text', 'Sample set on the clipboard');
var data = Ext.air.Clipboard.getData('air:text');


Ext.air.VideoPanel

Ext.air.VideoPanel enables you to embed flash based video while maintaining the same functionality as an Ext.Panel. VideoPanel’s can also take part in Ext layout management. This means that you can nest your Video’s in a border layout, add toolbars, buttons, just as you have become accustomed to. You just need to provide the recorded FLV to playback or provide a camera connected to the PC. You can even watch the video fullscreen in high definittion!

var vp = new Ext.Viewport({
    layout: 'fit',
    items: [{
        id: 'video',
        xtype: 'videopanel'
    }]
});
Ext.getCmp('video').loadVideo('sample.flv');


AIR and the Future of Ext.air

Adobe AIR enables web developers to use their existing skill set to create desktop applications. AIR is a cross-platform runtime and allows you to develop your application once and then deploy it across Windows, OS X or Linux. (The Linux runtime is currently in beta status.) Adobe AIR 1.5 was shipped last week at AdobeMAX and features database encryption, an updated WebKit (including SquirrelFish) and Flash Player 10.

Ext will be adding support to encrypt your SQLite database soon. Another exciting technology which was included in Adobe AIR 1.5 is PixelBender. PixelBender allows you to apply lightning fast image or video processing filters to your application. An important feature of AIR that many people are unaware of is that you can mix and match Ajax, Flash and Flex technologies. There are several existing open-source ActionScript libraries which you can take advantage of immediately by including them in your application. A new project from Adobe named Alchemy will even let you compile C or C++ code to the ActionScript virtual machine. You could then consume this code in an Ext application on the AIR platform! The entire Ext.air package including samples can be downloaded here. It will also be included in the next release of Ext.

112 Responses to “ExtPlayer – An MP3 Player developed with Adobe AIR and Ext JS”

  1. D

    This is GREAT NEWS! Only last night I started playing around with the previous Ext.air and started creating js notifications. Now I can do ExtJS notifications which are always MUCH better. :) Keep up the outstanding work guys & gals!

  2. Steven

    WOW! This is great! I’m so happy you didn’t forget Air, because Ext and Air were really meant for each other!

  3. soze

    Absolutely stunning!

  4. Gary Gilbert

    Some great news here! I take it that since the Ext.air.VideoPanel allows for nesting we can add all the normal features like fullscreen, stop, play, pause, sound on/off etc?

    Way to go

  5. Phunky

    Oh wow, these new features sound great – its been quite some time since i’ve played with ExtJS but i think i may just have to get playing when i’m out of the office.

    Love the work guys!

  6. mile

    This is unbelievable! good work guys.

  7. Sefa Keles

    This is incredible! Ext.air.Notify class and also the exposed methods in Ext.air.NativeWindow class to re-order windows, set a window as always on top, and enable full-screen mode are very useful. It seems that the line separating Ext and Adobe AIR is vanishing. Thank you guys. We really appreciate that.

  8. Flat Tire

    JavaScript is now the new COBOL.

  9. Daily del.icio.us for November 23rd through November 24th

    [...] ExtPlayer – An MP3 Player developed with Adobe AIR and Ext JS – In partnership with Adobe, Ext is releasing several new enhancements to the Ext.air package today. These include improvements to existing classes responsible for Sounds, Windowing and Database as well as new classes responsible for Notification, Clipboard and File System Interaction. [...]

  10. Frank

    Very nice apps!

  11. Ajaxian » ExtPlayer: Ext AIR classes get an update

    [...] Aaron Conran has created a new set of AIR classes, as well as an example called ExtPlayer to show them off. [...]

  12. Ajax Girl » Blog Archive » ExtPlayer: Ext AIR classes get an update

    [...] Aaron Conran has created a new set of AIR classes, as well as an example called ExtPlayer to show them off. [...]

  13. Sensible Mind

    What about the license? Do we need to buy a license when coding Air apps with Ext?

  14. Bob

    The gap between browser and desktop application is now very thin.

  15. Ext Air, de nouvelles classes dont ExtPlayer | Le blog de Yohann CIURLIK | Spawnrider.Net :: Blog

    [...] : http://extjs.com/blog/2008/11/24/extplayer-air-and-ext/ via [...]

  16. AIR Tutorials and News » AirTutorials Archive » Ext.AIR Update ExtJS for Adobe AIR

    [...] You can find out more about Ext.Air here [...]

  17. Javascript News » Blog Archive » ExtPlayer: Ext AIR classes get an update

    [...] Aaron Conran has created a new set of AIR classes, as well as an example called ExtPlayer to show them off. [...]

  18. ExtPlayer: Ext AIR classes get an update | Eroarea 403

    [...] Aaron Conran has created a new set of AIR classes, as well as an example called ExtPlayer to show them off. [...]

  19. Web 2.0 Announcer

    ExtPlayer – An MP3 Player developed with Adobe AIR and Ext JS…

    [...]In collaboration with Adobe, Ext is releasing several new enhancements to the Ext.air package today. These include improvements to existing classes responsible for Sounds, Windowing and Database as well as new classes responsible for Notification,…

  20. JC

    Looks great! Nice song selection for the screenshot too :)

  21. Estetik

    This is incredible! Ext.air.Notify class and also the exposed methods in Ext.air.NativeWindow class to re-order windows, set a window as always on top, and enable full-screen mode are very useful. It seems that the line separating Ext and Adobe AIR is vanishing. Thank you guys. We really appreciate that.

  22. Расширения ExtJS для платформы Adobe AIRAlpha-Beta-Release Blog » Архив блога

    [...] знакомить с новинками фреймворка ExtJS. На этот раз команда разработчиков сообщает, что в сотрудничестве с Adobe они развивают библиотеке в [...]

  23. ExtPlayer: Lettore mp3 con AIR ed Ext | Fidicaro.net

    [...] possibile creare applicazioni davvero interessanti. Ne è l’ennesima prova questa nuova applicazione denominata ExtPlayer e realizzata con l’ausilio dei pacchetti Ext.air: un lettore mp3 che [...]

  24. Hello.World » Ext.air - Blurring the line between Adobe AIR and Ext JS » The Weblog of Matthew Delmarter

    [...] a result of collaberation between Ext JS and Adobe, several impressive enhancements to the Ext.air package were just released. These enhancements allow even better control of AIR and [...]

  25. luven

    very cool ! fighting .

  26. David Davis

    Nice work Aaron!

  27. ExtJS - Librería Javascript » Blog Archive » Player MP3 con Adobe AIR y Ext JS

    [...] Más información: ExtPlayer [...]

  28. Rich Apps Consulting

    Cool Application. Addition to number of good AIR based applications.

  29. Jackson Brown

    Great list to examples at: http://www.flexbasics.com

  30. sy

    I executed the player.html i nthe install.zip available in the player blog post.

    the music player wont run?

    Ext.air not found in base class…?
    how doi make this run?

  31. blake

    @sy looks like you are using the wrong link. once you have AIR installed. try this link: http://extjs.com/playpen/extplayer/ExtPlayer.air

  32. Manga

    [...]Thanks for sharing your work with us! Your theme is just awesome![...]

  33. Mucahid Uslu

    interesting article.
    i’m trying to develop a radio web site and i wanna use jsext.
    http://mucahiduslu.blogspot.com

  34. söve

    thanks.

  35. Ben

    Hi,

    You have misplaced an apostrophe: “Window and App API’s”.

    Surely you mean: “Window and App APIs”

  36. Jerry Mason

    Great info at: http://www.flexbasics.com

  37. loiy

    Hi,
    excute me,can anybody help me?
    Background set to transparent。

  38. videolar

    I executed the player.html i nthe install.zip available in the player blog post.

    the music player wont run?
    videolar
    Ext.air not found in base class…?
    how doi make this run?

  39. loiy

    videolar
    step no1.down it to disk.example.It is position on C Disk.continue,you open DOS,and Writing adl application.xml.it is run now.

  40. eloksal

    nice article nice site 10x

  41. haber

    thank you

    haber haberler

  42. şişme oyun parkı

    Ext.air not found in base class…?
    how doi make this run?

  43. video

    videolar Cool Application.

  44. kaka
  45. transeksuel

    ExtPlayer – An MP3 Player developed with Adobe AIR and Ext JS

  46. forum

    Thank You

  47. turkce mirc

    Thank You İTs Great

  48. Ares

    赞!~~~

  49. kang

    咋运行不起来啊

  50. HawK.TwO

    Well, this very nice and wonderful.

  51. Бaндиткa

    Очень хорошая статья. Буду ждать продолжения. Тема безусловно интересна всем.

  52. Всеволод Кузьмичев

    Все замечательно: и по стилю изложения, и по содержанию тоже. Так держать!

  53. Степан Макаров

    Хм… что-то у меня ссылка не открывается, которую указали. Это у всех так?

  54. bayrak

    thanks very much

  55. konteyner

    I executed the player.html i nthe install.zip available in the player blog post.

  56. online sinema izle

    It is great 10x

  57. kabin

    its great.D:Dd.

  58. oteller

    Ext.air.VideoPanel enables you to embed flash based video while maintaining the same functionality as an Ext.Panel. VideoPanel’s can also take part in Ext layout management. This means that you can nest your Video’s in a border layout, add toolbars, buttons, just as you have become accustomed to. You just need to provide the recorded FLV to playback or provide a camera connected to the PC. You can even watch the video fullscreen in high definittion!

  59. tatil hotel

    very good..

  60. haberler

    What about the license? Do we need to buy a license when coding Air apps with Ext?

  61. medyum

    The gap between browser and desktop application is now very thin.

  62. altın

    The gap between browser and desktop application is now very thin

  63. rent a car

    Congratulations on your nice site

  64. aöf

    Very good, congratulations article

  65. cinsellik

    I am grateful to you for this great content.

  66. radyo dinle

    Ext.air.VideoPanel enables you to embed flash based video while maintaining the same functionality as an Ext.Panel. VideoPanel’s can also take part in Ext layout management. This means that you can nest your Video’s in a border layout, add toolbars, buttons, just as you have become accustomed to. You just need to provide the recorded FLV to playback or provide a camera connected to the PC. You can even watch the video fullscreen in high definittion!

  67. Devletbaba

    Very good information.

  68. Oyun

    Danke so fiele.

  69. Televizyon

    danke men

  70. Erdogan

    Thx so much.

  71. sikiş

    I am grateful to you for this great content.

  72. sikiş videoları

    I am grateful to you for this great content.aöf

  73. dereiçi

    Thank You well my admin :P

  74. istanbul transfer

    You just need to provide the recorded FLV to playback or provide a camera connected to the PC. You can even watch the video fullscreen in high definittion!

  75. istanbul tours

    Ext.air.VideoPanel enables you to embed flash based video while maintaining the same functionality as an Ext.Panel.

  76. ataturk airport shuttle

    What it allows?

  77. ataturk airport transfer

    Ext.air.Clipboard allows you to interact with the system’s clipboard. Developers can determine if a particular format has data, set the data and get the data. At this point, this is largely a pass through to an existing class from Adobe air.Clipboard.generalClipboard.

  78. istanbul hotels shuttle

    t seems that the line separating Ext and Adobe AIR is vanishing. Thank you guys. We really appreciate that.

  79. ataturk hotels transfer

    An easy code greate!
    var vp = new Ext.Viewport({
    layout: ‘fit’,
    items: [{
    id: 'video',
    xtype: 'videopanel'
    }]
    });
    Ext.getCmp(’video’).loadVideo(’sample.flv’);

  80. istanbul tours

    xt 2.0.2 introduced an Ext.air.Sound class, which is useful for playing small sounds such as beep and chimes. In contrast, Ext.air.MusicPlayer is meant for long running sounds such as music and podcasts which you would never want multiple files playing at the same time.

  81. shuttle istanbul

    The MusicPlayer enables the developer to add music and podcasts to their AIR-enabled Ext application very quickly.

    var mp = new Ext.air.MusicPlayer();
    mp.adjustVolume(0.5);
    mp.play(url);

  82. ataturk airport transfer

    By displaying these notifications at the operating system level it is sure to get the users attention without being lost within a browser tab.

  83. istanbul turkey hotels

    ExtPlayer – An MP3 Player developed with Adobe AIR and Ext JS is a good work that I have seen.

  84. istanbul shuttle bus

    You can even watch the video fullscreen in high definittion!

  85. ataturk airport transfer

    A new project from Adobe named Alchemy will even let you compile C or C++ code to the ActionScript virtual machine. You could then consume this code in an Ext application on the AIR platform! The entire Ext.air package including samples can be downloaded here. It will also be included in the next release of Ext.

  86. istanbul transfer

    As you said.You could then consume this code in an Ext application on the AIR platform! The entire Ext.air package including samples can be downloaded here. It will also be included in the next release of Ext.

  87. istanbul transfer

    A new singleton, Ext.air.App will allow you to set your application to start on login and get the currently active window. Really simple this one!
    Ext.air.App.launchOnStartup(true);

  88. sultanahmet hotels

    Ext.air.Clipboard.setData(’air:text’, ‘Sample set on the clipboard’);
    var data = Ext.air.Clipboard.getData(’air:text’);

  89. traveller guide

    You could then consume this code in an Ext application on the AIR platform! The entire Ext.air package including samples can be downloaded here. It will also be included in the next release of Ext.

  90. istanbul shuttle service

    It is the lastone as a useful I think.

  91. Forum Sitesi

    oh thank you

  92. Estetik Plastik Cerrahi

    thak you for this comment

  93. 3u5

    Danke so fiele.

  94. n9k

    Thx so much.

  95. m6v

    Thank you usefull informations.

  96. aksaray üniversitesi

    thank veryy good

  97. medyum

    Cool Application. Addition to number of good AIR based applications.

  98. forum sitesi

    thank you man

  99. Konteyner

    Alara Hotel Alanya It is the lastone as a useful I think.

  100. Marcel

    These new features sound great, I like the applications. Thank you a lot.

    Registry Cleaner Reviews

  101. halı yıkama

    thank you very good

  102. Mundduschen

    That ist really great ! Thank you !

  103. Santa Luzia

    I searched a lot for these applications. Thank you !

  104. OttoMane

    You just need to provide the recorded FLV to playback or provide a camera connected to the PC. You can even watch the video fullscreen in high definittion!

  105. tatil

    thank u for sharing..am i late to sat something about it ?

  106. haber

    its very nice and amazing.

  107. Yasam Kocu

    Some great news here! I take it that since the Ext.air.VideoPanel allows for nesting we can add all the normal features like fullscreen, stop, play, pause, sound on/off etc?

  108. Laptop

    You just need to provide the recorded FLV to playback or provide a camera connected to the PC. You can even watch the video fullscreen in high definittion!

  109. estetik

    great post to read. congrats.

  110. twister

    i download the player air ,but how to user it ,please some one help me???

  111. Anfänger

    Great work. I like the application ! Thanks

  112. Anna

    Thank you usefull informations.

Leave a Reply

To prove that you're not a bot, please answer this question:



© 2006-2009 Ext, LLC