Common Web Player Code

Source: Internet
Author: User

The player we see on the Web page is no different from Wmp/realone/macromedia Flash player, other than the panel, or adding other controls, for some of the players installed on the computer are encoding and decoder integration, The most core encoding and decoding techniques are the same. For example: The most popular Windows Media streaming on the network (asf,wma,wmv format ...), the real stream (RM,RMVB ...), and the MPEG Series encoding format (Mp4/mp3 format ...)
Windows Media Video, a streaming media format introduced by Microsoft, is an extension of the ASF (Advanced Stream format) format of "the same". In the same video quality, WMV format is very small, so it is suitable for online playback and transmission. Windows Media Player9 is compatible with all formats of WMV, the official encoder is Windows Media Encoder, but if you want to transform high-quality WMV files, then you must have huge memory to process the data ...
Inadvertently found that the Castpost player can define their own size, for the WMV format online play can be said to be fast enough, and then took a great effort to put some wonderful short film and some classic MTV conversion WMV format to put up, although now can not download, but as long as the number of connections is not too many, It's still a smooth ^_^.

WMP joins the ActiveX decoder control, not only to play the song, but also to put Flash and other video files  
<object align= Middle classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class= "OBJECT" Id=mediaplayer width=196 height=196>< Span class= "Apple-converted-space" >&NBSP;
<param Name=showstatusbar value=0> &NBSP;
<param name=filename value= "http://202.116.*.*/video/story/ Chinese/hynh/b.wmv ">&NBSP;
<embed Type=application/x-oleobject codebase= "Http://activex.microsoft.com/activex/con  ... n/nsmp2inf.cab# version=5,1,52,701 ">&NBSP;
</embed> &NBSP;
</object>&NBSP;
To use WMP for continuous playback, refer to the ASX meta-file Usage Tutorial: Use the ASX playlist

The top of this player is the old-fashioned kind, version 6.4! The new player appears after MediaPlayer9.0, which means that only players with 9.0 or more than 9.0 will be able to use it properly.


Here's the new player code, which is a lot simpler than it used to be:
<object id= "Player" height= "Up" width= "260" classid= "CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" >
<param name= "AutoStart" value= "-1" >
<!--is automatically played--
<param name= "Balance" value= "0" >
<!--adjust the left and right channel balance with the old player code above--
<param name= "Enabled" value= "-1" >
<!--player can be artificially controlled--
<param name= "Enablecontextmenu" value= "-1" >
<!--whether context menu is enabled--
<param name= "url" value= "/blog/1.wma" >
<!--played file address--
<param name= "Playcount" value= "1" >
<!--Play Count control, integer--
<param name= "Rate" value= "1" >
<!--playback rate control, 1 for normal, allow decimal,1.0-2.0-->
<param name= "currentposition" value= "0" >
<!--control Settings: Current Location--
<param name= "Currentmarker" value= "0" >
<!--control settings: Current Tag--
<param name= "Defaultframe" value= "" >
<!--show default frames--
<param name= "Invokeurls" value= "0" >
<!--script command settings: whether to invoke url-->
<param name= "BaseURL" value= "" >
<!--script command settings: called url-->
<param name= "Stretchtofit" value= "0" >
<!--proportional Stretch--
<param name= "Volume" value= ">"
<!--default sound size 0%-100%,50 is 50%-->
<param name= "Mute" value= "0" >
< is!--muted--
<param name= "Uimode" value= "Mini" >
<!--player display mode: Full display all, Mini is the most simplified; None does not show playback control, only the video window is displayed; Invisible all does not display-
<param name= "Windowlessvideo" value= "0" >&NBSP;
<!--If it is 0, you can allow full screen, otherwise it can only be viewed in the window. &NBSP;
<param name= "fullscreen" value= "0" >&NBSP;
<!--start playing automatically full screen-->&NBSP;
< param name= "enableerrordialogs" value= "-1" >&NBSP;
<!--whether to enable the error notification report-- >&NBSP;
<param name= "Samistyle" Value>&NBSP;
<!--Sami style-->&NBSP;
<param Name= "Samilang" Value>&NBSP;
<!--Sami language-->&NBSP;
<param name=" samifilename "Value> <!--subtitles Id-->&NBSP;
</object>

Common page player code

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.