Online video code player code webpage preparation online video playback code various formats player code Daquan

Source: Internet
Author: User
Tags prefetch
    Nailwl
    Note: many of my friends asked me if the video can be played online. I will summarize the webpage code of some video files of different formats as follows, hoping to help you. usage instructions: You should change the video path in the following code to a relative or absolute path suitable for the content on your website. The player window size can be changed to the parameter of height and width.

    1. AVI format

    <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 = "http://www.jianzhan8.cn/sample.avi">
    <Embed width = "400" Height = "200" border = "0" showdisplay = "0" showcontrols = "1" autostart = "1" autorewind = "0" playcount =" 0 "moviedomainwheight =" 240 "moviedomainwwidth =" 320 "filename =" http://www.jianzhan8.cn/sample.avi "src =" sample. avi ">
    </Embed>
    </Object>

    2. mpg format

    <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 = "http://www.jianzhan8.cn/sample.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. rm format

    <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"> <embed SRC type = "audio/X-PN-RealAudio-plugin" console = "clip1" controls = "imagewindow" height = "288" width = "352" autostart = "false"> </Object>

    4. WMV Format

    <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 = "xxxxxx. 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>

    5: The simplest playback code

    <Embed src = "http://www.jianzhan8.cn/sample.wmv" autostart = "true" loop = "true" width = "200" Height = "150">
    Just replace http://www.jianzhan8.cn/sample.wmvwith the movie you want to watch.

    6: Rm format with images

    <Object classid = CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA Height = 288 id = video1 width = 305 viewastext>
    <Param name = _ extentx value = 5503>
    <Param name = _ extenty value = 1588>
    <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.jianzhan8.cn/sample.ram>
    <Param name = controls value = imagewindow, statusbar, controlpanel>
    <Param name = console value = raplayer>
    <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>

    7: Rm format without images: (such as crosstalk, songs ...)

    <Object ID = video2 width = 300 Height = 62 classid = CLSID: CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA>
    <Param name = _ extentx value = 9657>
    <Param name = _ extenty value = 847>
    <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.jianzhan8.cn/sample.rm>
    <Param name = controls value = statusbar, controlpanel>
    <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>

    8: The simplest media format player

    <Embed src = MMS: // www.jianzhan8.cn/sample.wmv width = 200 Height = 200 autostart = true loop = true> </embed>

    9: media players with images automatically call online plug-ins

    <Object ID = nstv classid = CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6 width = 280 Height = 265 codebase = http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type = application/X-oleobject>
    <Param name = URL value = http://www.jianzhan8.cn/sample.wma>
    <Param name = uimode value = full> <Param name = autostart value = true>
    <Param name = Enabled value = true>
    <Param name = enablecontextmenu value = false>
    <Param name = windowlessvideo value = true> </Object>

    10: media players without images

    <Object ID = nstv classid = CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6 width = 280 Height = 60 codebase = http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type = application/X-oleobject>
    <Param name = URL value = http://www.jianzhan8.cn/sample.wma>
    <Param name = uimode value = full> <Param name = autostart value = true>
    <Param name = Enabled value = true>
    <Param name = enablecontextmenu value = false>
    </Object>

    11: Online playback of RM video code

    <Object ID = "Player" name = "Player" classid = "CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width = "400" Height = "272">
    <Param name = "_ extentx" value = "18415">
    <Param name = "_ extenty" value = "9102">
    <Param name = "autostart" value = "-1">
    <Param name = "Shuffle" value = "0">
    <Param name = "prefetch" value = "0">
    <Param name = "nolabels" value = "-1">
    <Param name = "src" value = "http://www.jianzhan8.cn/sample.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">
    </Object> <br>
    <Object ID = "RP2" classid = "CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width = "400" Height = "57">
    <Param name = "_ extentx" value = "18415">
    <Param name = "_ extenty" value = "1005">
    <Param name = "autostart" value = "-1">
    <Param name = "Shuffle" value = "0">
    <Param name = "prefetch" value = "0">
    <Param name = "nolabels" value = "-1">
    <Param name = "src" value = "http://www.jianzhan8.cn/sample.rm">
    <Param name = "controls" value = "controlpanel, statusbar">
    <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>

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.