A Web page player parameters sorted out by a Netizen

Source: Internet
Author: User
Tags functions integer prefetch shuffle window
Web page

These days set up a movie server, research for a long time, now put some of the Web player parameter meaning sorted out, you don't say, on these parameters also toss me for a long time, and now finally solved, thank you netizens, it finishing processing, but also in order to use later!

The parameter meaning of the web player Windows Media player web player parameter meaning

(default 0 is no,-1 or 1 is yes)
<object classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id= "MediaPlayer1" width= "286" height= ">"
<param name= "Audiostream" value= "-1" >
<param name= "AutoSize" value= "-1" >
<!--whether the playback size is automatically adjusted-->
<param name= "AutoStart" value= "-1" >
<!--whether to play--> automatically
<param name= "Animationatstart" value= "-1" >
<param name= "Allowscan" value= "-1" >
<param name= "Allowchangedisplaysize" value= "-1" >
<param name= "Autorewind" value= "0" >
<param name= "Balance" value= "0" >
<!--left-right channel balance, leftmost 9640, 9640-->
<param name= "BaseURL" value>
<param name= "Bufferingtime" value= ">"
<!--buffer time-->
<param name= "Captioningid" value>
<param name= "Clicktoplay" value= "-1" >
<param name= "CursorType" value= "0" >
<param name= "currentposition" value= "0" >
<!--current playback Progress-1 means unchanged, 0 indicates the first unit is a second, for example, 10 indicates that the value must be-1.0 or greater than or equal to 0--> from 10th seconds.
<param name= "Currentmarker" value= "0" >
<param name= "Defaultframe" value>
<param name= "Displaybackcolor" value= "0" >
<param name= "Displayforecolor" value= "16777215" >
<param name= "DisplayMode" value= "0" >
<param name= "displaysize" value= "0" >
<!--video 1-50%, 0-100%, 2-200%,3-full screen other values for 0 processing, decimal is rounded then followed by the processing-->
<param name= "Enabled" value= "-1" >
<param name= "Enablecontextmenu" value= "-1" >
<!-whether you want to use the right mouse pop-up menu to control-->
<param name= "Enablepositioncontrols" value= "-1" >
<param name= "Enablefullscreencontrols" value= "-1" >
<param name= "Enabletracker" value= "-1" >
<!--whether to allow pulling the playback progress bar to any place to play-->
<param name= "Filename" value= "/blog/01.wma" valuetype= "ref" >
<!--playback file address-->
<param name= "Invokeurls" value= "-1" >
<param name= "Language" value= "-1" >
<param name= "Mute" value= "0" >
<!--Mute-->
<param name= "Playcount" value= "ten" >
<!--repeat playback times, 0 for always repeat-->
<param name= "PreviewMode" value= "-1" >
<param name= "Rate" value= "1" >
<!--playback rate control, 1 is normal, allow decimal-->
<param name= "Samistyle" value>
<!--Sami style-->
<param name= "Samilang" value>
<!--Sami language-->
<param name= "Samifilename" value>
<!--subtitles id-->
<param name= "SelectionStart" value= "-1" >
<param name= "Selectionend" value= "-1" >
<param name= "sendopenstatechangeevents" value= "-1" >
<param name= "sendwarningevents" value= "-1" >
<param name= "senderrorevents" value= "-1" >
<param name= "sendkeyboardevents" value= "0" >
<param name= "sendmouseclickevents" value= "0" >
<param name= "sendmousemoveevents" value= "0" >
<param name= "sendplaystatechangeevents" value= "-1" >
<param name= "showcaptioning" value= "0" >
<!--whether captions are displayed for a piece of black, there will be a large chunk of black below, generally do not show-->
<param name= "Showcontrols" value= "-1" >
<!--whether to display control, such as playing, stopping, pausing-->
<param name= "Showaudiocontrols" value= "-1" >
<!--whether to display volume control-->
<param name= "Showdisplay" value= "0" >
<!--display program information, such as copyright-->
<param name= "Showgotobar" value= "0" >
<!--whether context menus are enabled-->
<param name= "Showpositioncontrols" value= "-1" >
<!--whether to show forward and list, if the display is generally also gray uncontrollable-->
<param name= "ShowStatusBar" value= "-1" >
<!--The current playback information, showing whether it is playing, and the total playback time and the time currently played-->
<param name= "Showtracker" value= "-1" >
<!--whether the current playback track bar is displayed, that is, the current playback progress bar-->
<param name= "Transparentatstart" value= "-1" >
<param name= "videoborderwidth" value= "0" >
<!--the width of the display, if less than the width of the video, the minimum is video width, or to the specified value, and automatically increase the height. This change only changes the four-week black box size and does not change the video size-->
<param name= "Videobordercolor" value= "0" >
<!--display the color of the black box, RGB values, such as FFFF00 yellow-->
<param name= "Videoborder3d" value= "0" >
<param name= "Volume" value= "0" >
<!--volume size, negative value is the current volume of the reduction, the values will automatically take absolute, the maximum is 0, the minimum is -9640-->
<param name= "Windowlessvideo" value= "0" >
<!--if 0 allows full-screen, you can view--> in a window only
</object>

The above player is the old-fashioned kind, version 6.4! New players appear after MediaPlayer9.0, which means that only 9.0 or more 9.0 of the players can be used properly.

-------------------------------------------------------------------------------

Here's a new player code that's a lot simpler than it used to be:
<object id= "Player" height= "width=" classid= "Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" >
<param name= "AutoStart" value= "-1" >
<!--whether to play--> automatically
<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 menus are enabled-->
<param name= "url" value= "/blog/1.wma" >
<!--playback file address-->
<param name= "Playcount" value= "1" >
<!--playback times control, for integer-->
<param name= "Rate" value= "1" >
<!--playback rate control, 1 is normal, allow decimal,1.0-2.0-->
<param name= "currentposition" value= "0" >
<!--control settings: Current position-->
<param name= "Currentmarker" value= "0" >
<!--control settings: Current Tag-->
<param name= "Defaultframe" value= "" >
<!--display default frame-->
<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" >
<!--whether to extend--> proportionally
<param name= "Volume" value= "M" >
<!--default sound size 0%-100%,50 is 50%-->
<param name= "Mute" value= "0" >
<!--Mute-->
<param name= "Uimode" value= "Mini" >
<!--player display mode: full display all; Mini simplifies; None does not display playback control, only the video window is displayed; Invisible all do not show-->
<param name= "Windowlessvideo" value= "0" >
<!--if 0 allows full-screen, you can view--> in a window only
<param name= "fullscreen" value= "0" >
<!--start playing automatically full-screen-->
<param name= "Enableerrordialogs" value= "-1" >
<!--whether to enable error notification reporting-->
<param name= "Samistyle" value>
<!--Sami style-->
<param name= "Samilang" value>
<!--Sami language-->
<param name= "Samifilename" value>
<!--subtitles id-->
</object>

Real Player web player parameter meaning

Parameters: Autostart Property: True or false: Specifies whether the specified source file is automatically played
Parameters: BackgroundColor Property: Any 16-value or any predefined color effect that begins with the symbol "#": Specifies the background color of the image window
Parameters: Center Property: TRUE or false: Specifies that the fragment plays with the initial encoding size and is in the center of the image window.
Parameters: ClassID Property: "clsid:cfcdaa03-8be4-1lcf-b84b0020afbbccfa:** function: Specifies the unique string identifier of an ActiveX control, which can be recognized as an embedded Realpalyer player."
Parameters: Console Property: Any string action: You can aggregate various RealPlayer controls on a Web page so that they can be used interactively or remain independent, and do not affect each other
Parameters: Controls Properties: Imagewindow,all,controlpanel,plavbutton,playonlybutton, Pausebutton,stopbutton,ffctrl,rwctrl, Mutectrl,mutevolume,volumeslider,positionslider,tacctrl,homectrl,infovolumepanel,infopanel,statusbar, Statusfield,positionfield function: Allows you to specify which controls are visible.
Parameters: Height Property: Any integer value function: Specifies the height of the RealPlayer element, in pixels
Parameters: id attribute: Any string action: Specifies a name for the RealPlayer element in the label.
Parameters: Imagestatus Property: True or false: Specifies whether state information is displayed in the Image window, and the default value is True
Parameters: Loop Property: True or False: Allows you to specify whether the fragment loop is infinite
Parameters: Maintainaspect Property: True or false: The default RealPlayer stretches all pieces to fill the entire image window.
Parameters: Name property: Any string action: Specify a name for the RealPlayer element in the label (use ID in the label)
Parameters: Nojava Property: True or false: Avoid starting Java virtual machines
Parameters: Nolabels Property: True or false: You can suppress the display of title or copyright information (realplayer5.0 above, it is garbage ...)
Parameters: Nologo Property: True or false: avoid displaying in the image window when RealPlayer is started
Parameters: Numloop Property: Any integer value function: Allows you to specify the number of times the file slice loop, do not need parameter loop
Parameters: Prefetch Property: True or false: Specifies whether RealPlayer can obtain flow description information before playback, the default value is False
Parameters: Region Property: Any string action: Used with SMIL. Allows you to specify the use of HTML instead of SMIL
Parameters: Scriptcallbacks Properties: comma-separated list function: Specify browser callback monitoring (good high-level Dongdong!) )
Parameters: Shuffle Property: True or false: Used with multiple file slices of RAM or smil files. Allows RealPlayer to randomly play the files in the list
Parameters: Src attribute: Any valid relative or complete URL action: Specifies the address of the file or source file to play
Parameters: Type attribute: string action: Specifying MIME type for embedded plug-in
Parameters: Width Property: Any integer value function: Specifies the width of the RealPlayer element

controls attribute meaning ...

Component: Imagewindow
Role: Video display area

Components: All
Function: Embed all buttons, sliders, and information panels for Realplaver

Component: ControlPanel
Function: Display all control buttons, as well as position slider and speaker icons, and adjust the sound size of the slider bar

Component: PlayButton
Function: Show play button and pause (pause) button

Component: Playonlybutton
Function: Show only the play button

Component: Pausebutton
Function: Show pause button only

Component: Stopbutton
Function: Show Stop button only

Component: Ffctrl
Function: Show Fast Forward (fastforward) button only

Component: Rwctrl
function: Show playback (rewind) button only

Component: Mutectrl
Function: Display only the speaker icon as the mute button

Component: Mutevolume
Function: Display small speaker icon (for mute) and the slider on which to adjust the volume

Component: Volumeslider
function: Show only vertical volume slider

Component: Positionslider
function: Show horizontal position Slider

Component: Tacctrl
Role: Displays a horizontal message box, displaying title, author, and copyright information in turn

Component: Homectrl
function: Show small real logo

Component: Infovolumepanel
Function: Display a black message box with green display title, author and copyright information, with speaker icon and sound adjustment slider on the right hand side

Component: Infopanel
Function: Same as above, but no mute button and sound adjustment slider

Component: StatusBar
Role: Display the level of message box, display fragment information, such as the time of the fragment, network conditions, etc.

Component: Statusfield
Role: Similar to StatusBar, but only display the message area, display network messages, such as "re-buffenng ..." ”

Component: Positionfield
Function: Small black message box that shows the length of the entire file fragment and the position of the current frame within the slice

Embed RealOne Player
<object id= "Rplayer" classid= "CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" height= "100%" WIDTH= "100%" >
<param name= "_extentx" value= "23627" >
<param name= "_extenty" value= "15187" >
<param name= "AUTOSTART" value= "-1" >
<param name= "SHUFFLE" value= "0" >
<param name= "PREFETCH" value= "0" >
<param name= "nolabels" value= "0" >
<param name= "SRC" value= "http://www.blogerhome.com/address.asp?num=24009987&id=10019" >
<param name= "CONTROLS" value= "Imagewindow" >
<param name= "CONSOLE" value= "Clip1" >
<param name= "LOOP" value= "0" >
<param name= "Numloop" value= "0" >
<param name= "CENTER" value= "0" >
<param name= "Maintainaspect" value= "0" >
<param name= "BackgroundColor" value= "#000000" >
</object>
embed MediaPlayer player
<object id= "MediaPlayer" width= "478" height= "codebase=" Mplayer/en/nsmp2inf.
cab#version=6,1,5,217 "type=" Application/x-oleobject "standby=" Loading Microsoft Windows Media Player components ... " Classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" viewastext>
<param name= "Displaybackcolor" value= "0" >
<param name= "Displayforecolor" value= "16777215" >
<param name= "DisplayMode" value= "0" >
<param name= "Displaysize" value= "-1" >
<param name= "Filename" value= "mms://www.webjx.com/video file. wmv" >
<!--here to set up video connections for playback-->
<param name= "Showcontrols" value= "0" >
</object>

Some functions, methods and processes of RealPlayer

This is all the functions and methods of the real Player ActiveX control Library (Version 1.0) that are interesting to study.

function getsource:widestring;
Procedure SetSource (const lpsznewvalue:widestring);
function getconsole:widestring;
Procedure Setconsole (const lpsznewvalue:widestring);
function getcontrols:widestring;
Procedure Setcontrols (const lpsznewvalue:widestring);
function Getnolabels:wordbool;
Procedure Setnolabels (Bnewvalue:wordbool);
function Getautostart:wordbool;
Procedure Setautostart (Bnewvalue:wordbool);
function Getautogotourl:wordbool;
Procedure Setautogotourl (Bnewvalue:wordbool);
function Getvolume:smallint;
Procedure SetVolume (Nvol:smallint);
function Getmute:wordbool;
Procedure Setmute (Bmute:wordbool);
function Getloop:wordbool;
Procedure Setloop (Bval:wordbool);
function Getimagestatus:wordbool;
Procedure Setimagestatus (Benable:wordbool);
function Getpacketstotal:integer;
function Getpacketsreceived:integer;
function Getpacketsoutoforder:integer;
function Getpacketsmissing:integer;
function Getpacketsearly:integer;
function Getpacketslate:integer;
function Getbandwidthaverage:integer;
function Getbandwidthcurrent:integer;
Procedure Doplaypause;
Procedure Dostop;
Procedure Donextitem;
Procedure Doprevitem;
function Canplaypause:wordbool;
function Canstop:wordbool;
function Hasnextitem:wordbool;
function Hasprevitem:wordbool;
function Hasnextentry:wordbool;
function Haspreventry:wordbool;
Procedure Donextentry;
Procedure Dopreventry;
Procedure AboutBox;
Procedure Editpreferences;
Procedure Hideshowstatistics;
function Isstatisticsvisible:wordbool;
Procedure Dogotourl (const url:widestring; const target:widestring);
Procedure Doplay;
Procedure Dopause;
function Getposition:integer;
function Getplaystate:integer;
function Getlength:integer;
function gettitle:widestring;
function getauthor:widestring;
function getcopyright:widestring;
function Getclipwidth:integer;
function Getclipheight:integer;
function Canplay:wordbool;
function Canpause:wordbool;
Procedure SetPosition (Lposition:integer);
function Getnumloop:integer;
Procedure Setnumloop (Lval:integer);
function Getcenter:wordbool;
Procedure SetCenter (Bval:wordbool);
function Getnologo:wordbool;
Procedure Setnologo (Bval:wordbool);
function Getmaintainaspect:wordbool;
Procedure Setmaintainaspect (Bval:wordbool);
function getbackgroundcolor:widestring;
Procedure SetBackgroundColor (const pval:widestring);
function Getstereostate:wordbool;
function Getlivestate:wordbool;
function Getshowstatistics:wordbool;
Procedure Setshowstatistics (Bval:wordbool);
function Getshowpreferences:wordbool;
Procedure Setshowpreferences (Bval:wordbool);
function Getshowabout:wordbool;
Procedure Setshowabout (Bval:wordbool);
function Getoriginalsize:wordbool;
Procedure Setoriginalsize;
function Getdoublesize:wordbool;
Procedure Setdoublesize;
function Getfullscreen:wordbool;
Procedure Setfullscreen;
function Getenablecontextmenu:wordbool;
Procedure Setenablecontextmenu (Bval:wordbool);
function Getenableoriginalsize:wordbool;
Procedure Setenableoriginalsize (Bval:wordbool);
function Getenabledoublesize:wordbool;
Procedure Setenabledoublesize (Bval:wordbool);
function Getenablefullscreen:wordbool;
Procedure Setenablefullscreen (Bval:wordbool);
function Getenablemessagebox:wordbool;
Procedure Setenablemessagebox (Bval:wordbool);
Procedure Settitle (const pval:widestring);
Procedure Setauthor (const pval:widestring);
Procedure Setcopyright (const pval:widestring);
function Getwantkeyboardevents:wordbool;
Procedure setwantkeyboardevents (Bwantsevents:wordbool);
function Getwantmouseevents:wordbool;
Procedure setwantmouseevents (Bwantsevents:wordbool);
function Getnumentries:smallint;
function Getcurrententry:smallint;
function Getentrytitle (uentryindex:smallint): widestring;
function Getentryauthor (uentryindex:smallint): widestring;
function Getentrycopyright (uentryindex:smallint): widestring;
function Getentryabstract (uentryindex:smallint): widestring;
Procedure Setcanseek (Bcanseek:wordbool);
function Getcanseek:wordbool;
function Getbufferingtimeelapsed:integer;
function Getbufferingtimeremaining:integer;
function Getconnectionbandwidth:integer;
function getpreferedlanguagestring:widestring;
function Getpreferedlanguageid:integer;
function Getusercountryid:integer;
function Getnumsources:smallint;
function Getsourcetransport (nsourcenum:smallint): widestring;
function Getwanterrors:wordbool;
Procedure Setwanterrors (Bval:wordbool);
function Getshuffle:wordbool;
Procedure Setshuffle (Bval:wordbool);
function getversioninfo:widestring;
function getlastmessage:widestring;
function Getlasterrorseverity:integer;
function Getlasterrorrmacode:integer;
function Getlasterrorusercode:integer;
function getlasterroruserstring:widestring;
function getlasterrormoreinfourl:widestring;
Procedure Setprefetch (Bval:wordbool);
function Getprefetch:wordbool;
Procedure Setregion (const pval:widestring);
function getregion:widestring;
function Getisplus:wordbool;
function Getconsoleevents:wordbool;
Procedure setconsoleevents (Bval:wordbool);
function Getdrminfo (const pval:widestring): widestring;
Property Controlinterface:irealaudio read Getcontrolinterface;
Property Defaultinterface:irealaudio read Getcontrolinterface;



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.