Recently, I am writing code for online video playback. I have found some information from the Internet for your reference. I have changed the video path to the following code:
1. AVI format
The code snippet is as follows:
<Object ID = "video" width = "400" Height = "200" border = "0" classid = "CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<Param name = "showdisplay" value = "0">
<Param name = "showcontrols" value = "1">
<Param name = "autostart" value = "1">
<Param name = "autorewind" value = "0">
<Param name = "playcount" value = "0">
<Param name = "appearance value =" 0 value = ">
<Param name = "borderstyle value =" 0 value = ">
<Param name = "moviewindowheight" value = "240">
<Param name = "movie1_wwidth" value = "320">
<Param name = "FILENAME" value = "file: // d |/work/VOD/mbar. Avi">
<Embed width = "400" Height = "200" border = "0" showdisplay = "0" showcontrols = "1" autostart = "1" autorewind = "0" playcount =" 0 "moviedomainwheight =" 240 "moviedomainwwidth =" 320 "filename =" file: /// d |/work/VOD/mbar. avi"Src = "mbar. Avi">
</Embed>
</Object>
2. mpg format
The code snippet is as follows:
<Object classid = "CLSID: 05589fa1-c356-11ce-bf01-00aa0055595a" id = "activemovie1" width = "239" Height = "250">
<Param name = "appearance" value = "0">
<Param name = "autostart" value = "-1">
<Param name = "allowchangedisplaymode" value = "-1">
<Param name = "allowhidedisplay" value = "0">
<Param name = "allowhidecontrols" value = "-1">
<Param name = "autorewind" value = "-1">
<Param name = "balance" value = "0">
<Param name = "currentposition" value = "0">
<Param name = "displaybackcolor" value = "0">
<Param name = "displayforecolor" value = "16777215">
<Param name = "displaymode" value = "0">
<Param name = "enabled" value = "-1">
<Param name = "enablecontextmenu" value = "-1">
<Param name = "enablepositioncontrols" value = "-1">
<Param name = "enableselectioncontrols" value = "0">
<Param name = "enabletracker" value = "-1">
<Param name = "FILENAME" value = "..././MPEG/halali. mpg"Valuetype = "Ref">
<Param name = "fullscreenmode" value = "0">
<Param name = "moviewindowsize" value = "0">
<Param name = "playcount" value = "1">
<Param name = "rate" value = "1">
<Param name = "selectionstart" value = "-1">
<Param name = "selectionend" value = "-1">
<Param name = "showcontrols" value = "-1">
<Param name = "showdisplay" value = "-1">
<Param name = "showpositioncontrols" value = "0">
<Param name = "showtracker" value = "-1">
<Param name = "volume" value = "-480">
</Object>
3. SMI format
The code snippet is as follows:
<Object ID = rvocx classid = CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width = 240 Height = 180>
<Param name = "_ extentx" value = "6350">
<Param name = "_ extenty" value = "4763">
<Param name = "autostart" value = "-1">
<Param name = "Shuffle" value = "0">
<Param name = "prefetch" value = "0">
<Param name = "nolabels" value = "-1">
<Param name = "src" value = "RM. rm">
<Param name = "controls" value = "imagewindow">
<Param name = "console" value = "console1">
<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"> <embedSrc = "real. SMI"Type = "audio/X-PN-RealAudio-plugin" console = "lele1" controls = "imagewindow" Height = "180" width = "240" autostart = "true"> </Object>
4. rm format
The code snippet is as follows:
<Object ID = video1 classid = "CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" Height = 288 width = 352>
<Param name = "_ extentx" value = "9313">
<Param name = "_ extenty" value = "7620">
<Param name = "autostart" value = "0">
<Param name = "Shuffle" value = "0">
<Param name = "prefetch" value = "0">
<Param name = "nolabels" value = "0">
<Param name = "src" value = "rtsp: // 203.207.131.35/VOD/dawan-a.rm";>
<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"> <embedSRCType = "audio/X-PN-RealAudio-plugin" console = "clip1" controls = "imagewindow" Height = "288" width = "352" autostart = "false">
</Object>
5. WMV Format
The code snippet is as follows:
<Object ID = "nsplay" width = 200 Height = 180 classid = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby = "loading Microsoft Windows Media Player components... "type =" application/X-oleobject "align =" right "hspace =" 5 ">
<! -- ASX file name -->
<Param name = "autorewind" value = 1>
<Param name = "FILENAME" value = "******. wmv">
<! -- Display controls -->
<Param name = "showcontrols" value = "1">
<! -- Display position controls -->
<Param name = "showpositioncontrols" value = "0">
<! -- Display audio controls -->
<Param name = "showaudiocontrols" value = "1">
<! -- Display tracker controls -->
<Param name = "showtracker" value = "0">
<! -- Show display -->
<Param name = "showdisplay" value = "0">
<! -- Display status bar -->
<Param name = "showstatusbar" value = "0">
<! -- Diplay go to bar -->
<Param name = "showgotobar" value = "0">
<! -- Display controls -->
<Param name = "showcaptioning" value = "0">
<! -- Player autostart -->
<Param name = "autostart" value = 1>
<! -- Animation at start -->
<Param name = "volume" value = "-2500">
<Param name = "animationatstart" value = "0">
<! -- Transparent at start -->
<Param name = "transparentatstart" value = "0">
<! -- Do not allow a change in display size -->
<Param name = "allowchangedisplaysize" value = "0">
<! -- Do not allow scanning -->
<Param name = "allowscan" value = "0">
<! -- Do not show contect menu on right mouse click -->
<Param name = "enablecontextmenu" value = "0">
<! -- Do not allow playback toggling on mouse click -->
<Param name = "clicktoplay" value = "0">
</Object>
6.wma format
In <body>. Some explanations are as follows:
<Object classid = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95" id = "mediaplayer1">
<Param name = "FILENAME" value = "1.wma"><! -- Location of your file -->
<Param name = "playcount" value = "1"> <! -- Control repeated times: "X" indicates the number of repeated playback times. x = 0 indicates an infinite loop. -->
<Param name = "autostart" value = "0"> <! -- Control the playback mode: x = 1. Enable automatic playback on the webpage; X = 0. Press the seek key to play the video. -->
<Param name = "clicktoplay" value = "1"> <! -- Control the playback switch: x = 1. You can click to control the playback or pause status. x = 0 to disable this function. -->
<Param name = "displaysize" value = "0"> <! -- Control the playback screen size: x = 0, original size; X = 1, half size; X = 2, 2 times size. -->
<Param name = "enablefullscreen controls" value = "1"> <! -- Control switching full screen: x = 1, allow switching to full screen; X = 0, disable this function. -->
<Param name = "showaudio controls" value = "1"> <! -- Volume Control: x = 1. Allow volume adjustment; X = 0. Disable volume adjustment. -->
<Param name = "enablecontext menu" value = "1"> <! -- Shortcut menu: x = 1. Right-click menu is allowed; X = 0. Right-click menu is disabled. -->
<Param name = "showdisplay" value = "1"> <! -- Control copyright information: x = 1. The information about the movie and the author is displayed. x = 0. No relevant information is displayed. -->
</Object>