JQuery Media Multimedia plugin

Source: Internet
Author: User

 

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

 

Related Article

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.