Streaming media video playback code summary.

Source: Internet
Author: User
Tags flv file

 

Only embed labels are available in NetEase blogs, so some extended labelsPlayThe plug-in function is unavailable in NetEase blogs. NowCodeOne by one.

1. RealONEPlayFormat (RM, Ram,MPEG4,Avi)

CodeAs follows:

 

<Embed src = "YourPlayFile address "type =" audio/X-PN-RealAudio-plugin "controls =" imagewindow, controlpanel, statusbar "border =" 0 "width =" 100% "Height =" 200 "autostart =" 1 "loop =" 0 "> </embed>

Note: In the controls = "", the control panel can be selected as needed. You can remove the controlpanel value without the need to control the button. Autostart = "" indicates whether to set automaticPlay1 indicates automatic, and 0 indicates manual. The value in loop = "" Is LoopPlay0 is 1, 2 is 1 is 2, n is n + 1,-1 is infinite loop, width and height are width and height, boder is border.

The following is a practical example:

Remove control panel and status bar (remove controlpanel and statusbar)

 

<Embed src = "YourPlayFile address "type =" audio/X-PN-RealAudio-plugin "controls =" imagewindow "border =" 0 "width =" 100% "Height =" 200 "autostart =" 1 "loop =" 0 "> </embed>

Display result:

 

 

2. Windows MediaPlayFormat (WMV,MPEG4,Avi)

 

<Embed src = "YourPlayFile address "type =" application/x-mplayer2 "border =" 0 "width =" 100% "showcontrols =" 1 "showaudiocontrols =" 1 "showstatusbar =" 1 "autostart =" 1" loop = "0" enablecontextmenu = "1"> </embed>

Note: The value 1 in showcontrols = "" is the display control button, and 0 is not displayed. The value 0 in showstatusbar = "" is not displayed; both enblecontextmenu and showaudiocontrols are similar. You can set your own values to write out what you need.CodeFor the meanings of other labels, see the RealONE section.

The following is an example:

Do not show control button autoPlayRetain the status bar.

 

<Embed src = "YourPlayFile address "type =" application/x-mplayer2 "border =" 0 "width =" 100% "showcontrols =" 0 "showaudiocontrols =" 1 "showstatusbar =" 1 "autostart =" 1" loop = "0" enablecontextmenu = "1"> </embed>

Display result:

 

3. FLV videoPlayTool class (FLV file)

Currently (as of 2006.10.18), no mainstreamPlayOnly informal software such as media classic and storm player are not profitable.PlayThe shell supports thisPlayFormat Decoding. The above refers to the offline scenario, that is, in your computer,PlayFLV files on your computer.

FLVPlayApplication on the web page, you can use the flash mx2004 or above software to DIY one, but do it yourselfPlayIt is not easy for most netizens, so you can use many existing network resources, for example, 6 rooms, toodou, mofile, yourtube, googlevideo, and qqvideo (qqvideo is in the testing stage. I will introduce a DIYPlayIs also made using the program kernel of a foreign website, so I would like to thank the foreign friends (thanks) who provide resources ).

ThisPlay(You can download it and upload it to your free space for use)

ItsCodeAs follows:

 

<Embed src = http://xnpic.chinaren.com/200611/927/PbkgFjNu.swf? File = YourPlayFile address

Type = "application/X-Shockwave-flash" wmode = "Transparent" Quality = "high" width = "459" Height = "350">

</Embed>

Note: wmode = "" is the display mode,PlayFiles only support FLV. I hope you don't use other format files to ask me how to use thisPlayToolPlay. You can download thisPlayAnd put it in your personal free space.

Display result:

 

Statement:CodeFLV is only for Netease blogs or other netizens.PlayIt is not used for commercial purposes, and we hope you can provide more FLVPlaySmall strong will also help you collect more personalizedPlay.

 

4. QuicktimePlayFormat.

These formats are rarely used in China.

 

Video/audio continuous playback skills

As follows, beginners can easily have their own video/audio files for continuous playback:

Step 1: Create a notepad File

Right-click in the blank area on your computer desktop and choose "New"> "Notepad" (you can also select notepad from the Attachment List in the Start Menu ).

Step 2: copy the following green code to the new notepad file (No extra spaces before and after the entire code)

Complete code Simplified code

<ASX version = "3.0">
<Title> title-"Xiaoqiang blog playlist" http://www.blog.163.com/lzq.mail continuous playback Technology Entry </title>
<ABSTRACT> This is a video or audio abstract description </abstract>

<Entry>
<Title> first video or audio clip </title>
<Author> author </author>
<Copyright> copyright </Copyright>
<Banner href = "Address of the image description">
<ABSTRACT> image description </abstract>
<Moreinfo href = "link address"/>
</Banner>
<Ref href = "first video or audio segment address"/>
</Entry>

<Entry>
<Title> second video or audio clip </title>
<Author> author </author>
<Copyright> copyright </Copyright>
<Banner href = "Address of the image description">
<ABSTRACT> logo description </abstract>
<Moreinfo href = "link address"/>
</Banner>
<Ref href = "second video or audio segment address"/>
</Entry>

</ASX>

<ASX version = "3.0">

<Entry>
<Ref href = "first video or audio segment address"/>
</Entry>

<Entry>
<Ref href = "second video or audio segment address"/>
</Entry>

</ASX>

The above table provides complete and simplified code. For Beginners, you can use simplified code without affecting media playback.

Edit all Chinese text. The most important part is the yellow video or audio address. paste the prepared video or audio address in the corresponding position to replace the original text.

Step 3: Save As A. WMA file after editing. Save as follows: Enter "mylist.wma" in the "Save name" column ". The double quotation mark.

The following is an illustration of the operation:

Step 4: Upload the saved "mylist.wma" to a network host that supports external links or your own network hard drive, such as: http://www.filelodge.com/

The following is an example of how filelodge.com uploads a file and obtains the address. (If you do not have an account, you must first register an account.Register, it's free!):

Step 5: copy the obtained list of media files to the mediaplay media address bar.

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.