Various media online playback code

Source: Internet
Author: User
Tags object
Media | online

Now have their own blog more and more people, we also want to outline their own blog features, such as the personality of the home page, personalized introduction and to recommend their favorite music. In order to give everyone also to provide convenience, sorted out some popular format of the online play code, in preparation for added.

"A description of some of the labels in the article."
FileName with full URL-the file name of the file to be played, preceded by an absolute path, or the relative path of the site.
width_num--specifies a number as the width;
height_num--specifies a number as a height;

1.mid

<embed src= "Filename with full URL" type= "Audio/midi" hidden= "false"

Autostart= "true" loop= "true" Height=height_num width=width_num></embed>

2.mp3

<embed controller= "true" width= "Width_num" height= "Height_num"

Src= "Filename with full URL" border= "0"

Pluginspage= "Http://www.apple.com/quicktime/download/indext.html" ></embed>

3.avi

<embed src= "Filename with full URL" border= "0" width= "width_num"

height= "Height_num" type= "Application/x-mplayer2" ></embed>

4.flash

<embed src= "Filename with full URL" pluginspage= "http://www.macromedia.com

/shockwave/download/index.cgi? P1_prod_version=shockwaveflash "type=" Application/x-shockwave-flash "width=" Width_num "height=" Height_num "play=" True ' loop= ' true '

quality= "High" scale= "ShowAll" menu= "true" ></embed>

5.mpg

<embed src= "Filename with full URL" border= "0" width= "width_num"

height= "Height_num" type= "Application/x-mplayer2" ></embed>

6.mov

<embed controller= "true" width= "Width_num" height= "Height_num"

Src= "Filename with full URL" border= "0" pluginspage= "http://www.apple.com/

Quicktime/download/indext.html "></embed>

7.rm

<OBJECT> "height=" Height_num ">

<param name= "CONTROLS" value= "Imagewindow" >

<param name= "AUTOSTART" value= "true" >

<param name= "SRC" value= "Filename with full URL" >

<embed height= "Height_num" width= "Width_num" controls= "Imagewindow"

Src= "Filename with full URL" type= "Audio/x-pn-realaudio-plugin" autostart= "true" nolabels= "0" autogotourl= "-1" > </OBJECT>

8. The above are all using the player, if just want to play the background music can use the following simple statement:
<bgsound src= "Filename with full URL" > loop=1>
The loop is followed by the number of loops,-1 represents an infinite loop.



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.