ExtJs 3.2.2 Page Embed player

Source: Internet
Author: User
ExtJs 3.2.2 Page Embed player
Before the article mentioned the song upload, upload needs to the song for review, the process needs to listen to the audio, although this feature has not said how to achieve, but Ricki in the module submitted to the test itself to try to implement the function, the code is as follows:
Java Code    listeners : {                             ' click '  :  function ()  {                                var songplayer  = new ext.window ({                                     layout :  ' fit ',                                     width:310,                                     modal : true,                                     frame: true,                                     autoHeight:true,                                     items : [new ext.panel ({                                         xtype :  ' Panel ',                                         id :   ' Playerpanel ',                                         html :  ' <object classid= ' clsid : 22d6f312-b0f6-11d0-94ab-0080c74c7e95 " type=" Audio/mpeg " width=" 310 "> '                                                   +  ' &LT;PARAM&NBsp;name= "FileName"  value= "d:\\ my document \\my music\\ King  - believe.mp3"/> " +                                                          ' <embed  width= "420"  height= "360"  type= "Application/x-mplayer2"  src= "d:\\ My Documents \\my music\\ the Pirate King  - believe.mp3 "></embed></object> '                              &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP})]                              &NBSP;&NBSP;&NBSP});  &nbsp                              songplayer.show ();                                 songplayer.dolayout ();                             }                           }  
The above Firefox\opera\ie 6 can operate normally, the system must be windows, in Google Browser do not see the player.

Ps:1.object tags are nested embed to be compatible with individual browsers
2.extjs also has a plug-in to implement the player, specific view http://www.sencha.com/blog/2008/11/24/extplayer-air-and-ext/

If you are free, welcome to the Red Yam.
88f9ac7064cab19d74c60183618ec5a6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.