Jquery media supports playing the following files
Player File Formats
Quicktime aif, aiff, aac, au, bmp, gsm, mov, mid, midi, mpg, mpeg, mp4, m4a, psd, qt, qtif, qif, qti, snd, tif, tiff, wav, 3g2, 3pg
Flash flv, mp3, swf
Windows Media Player asx, asf, avi, wma, and wmv
Real Player ra, ram, rm, rpm, rv, smi, smil
Silverlight xaml
Iframe html, pdf
It calls mediaplayer.swf to insert SWF, MP3, and FLV (other files can be manually specified) and calls the system object to play other files.
Call
<A href = "1.wma"> dd <a>
$ ("A"). media ();
<Div> </div>
$ ("Div"). media ({src: "1.wma "});
Option
Src: "url ",
Type: "mp3", //. If the file specified in SRC has an invalid extension, specify the file type here
Width: 400, // specify the width of the player.
Height: 300, // specify the height of the player
Cls:, // specify the CSS of the player container
Caption: true, // whether to display the player title
PreferMeta: 1, // true if markup metadata takes precedence over options object
Autoplay: 0, // automatic playback No
BgColor: '# ffff', // background color
Params: {}, // added to object element as param elements; added to embed element as attrs
Attrs: {}, // added to object and embed elements as attrs
Flashvars :{}, // added to flash content as flashvars param/attr
FlashVersion: '7', // required flash version
// Default flash video and mp3 player
FlvPlayer: 'mediaplayer.swf ',
Mp3Player: 'mediaplayer.swf ',
// Silverlight options
Silverlight :{
InplaceInstallPrompt: 'true', // display in-place install prompt?
IsWindowless: 'true', // windowless mode (false for wrapping markup)
Framerate: '24', // maximum framerate
Version: '0. 9', // Silverlight version
OnError: null, // onError callback
OnLoad: null, // onLoad callback
Initparams: NULL, // object init Params
Usercontext: NULL // callback Arg passed to the load callback
}
Demo 1 music
Demonstration 2 video
Download point here