熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

各種網頁播放器代碼大全

2013-11-15 11:42:49  來源: JSP教程 
rm文件在線播放
<embed height= /biyun/ren/arm type=audio/xpnrealaudioplugin width= autostart=false controls=PlayButton>
autostart=false 打開頁面時處於候命狀態autostart=true 打開頁面時馬上聽聲音 height= width= 有不同數值播放器面板有些不同
midiauavi文件在線播放
<EMBED SRC=~biyun/wlsd/wy/yinyue/H/mid; width= height= AUTOSTART=TRUE>autostart=false 打開頁面時處於候命狀態autostart=true 打開頁面時馬上聽聲音 height= width= 有不同數值播放器面板有些不同
asf文件在線播放
<html>
<head>
<meta httpequiv=ContentType content=text/html; charset=gb>
<title></title>
</head>
<body topmargin= leftmargin=>
<object classid=clsid:DFBFDABCCE codebase=#Version= height= id=NSPlay name=NSPlay type=application/xoleobject width= VIEWASTEXT standby=Loading Microsoft Windows Media Player components border=><param name=AudioStream value=>
<param name=AutoSize value=>
<param name=AutoStart value=>
<param name=AnimationAtStart value=>
<param name=AllowScan value=>
<param name=AllowChangeDisplaySize value=>
<param name=AutoRewind value=>
<param name=Balance value=>
<param name=BaseURL value>
<param name=BufferingTime value=>
<param name=CaptioningID value>
<param name=ClickToPlay value=>
<param name=CursorType value=>
<param name=CurrentPosition value=>
<param name=CurrentMarker value=>
<param name=DefaultFrame value>
<param name=DisplayBackColor value=>
<param name=DisplayForeColor value=>
<param name=DisplayMode value=>
<param name=DisplaySize value=>
<param name=Enabled value=>
<param name=EnableContextMenu value=>
<param name=EnablePositionControls value=>
<param name=EnableFullScreenControls value=>
<param name=EnableTracker value=>
<param name=Filename value=;>
<param name=InvokeURLs value=>
<param name=Language value=>
<param name=Mute value=>
<param name=PlayCount value=>
<param name=PreviewMode value=>
<param name=Rate value=>
<param name=SAMILang value>
<param name=SAMIstyle value>
<param name=SAMIFileName value>
<param name=SelectionStart value=>
<param name=SelectionEnd value=>
<param name=SendOpenStateChangeEvents value=>
<param name=SendWarningEvents value=>
<param name=SendErrorEvents value=>
<param name=SendKeyboardEvents value=>
<param name=SendMouseClickEvents value=>
<param name=SendMouseMoveEvents value=>
<param name=SendPlayStateChangeEvents value=>
<param name=ShowCaptioning value=>
<param name=ShowControls value=>
<param name=ShowAudioControls value=>
<param name=ShowDisplay value=>
<param name=ShowGotoBar value=>
<param name=ShowPositionControls value=>
<param name=ShowStatusBar value=>
<param name=ShowTracker value=>
<param name=TransparentAtStart value=>
<param name=VideoBorderWidth value=>
<param name=VideoBorderColor value=>
<param name=VideoBorderD value=>
<param name=Volume value=>
<param name=WindowlessVideo value=>
</object>
其中<param name=AutoStart value=> 為打開頁面處於待命狀態時打開頁面直接播放 </body>
</html>

流式收聽mp方法 把上面的的文件另存為*.m3u,就可實現在線播放*.mp3(支持連續播放)

mpeg影象在線播放:
等等,讓它下載<img border="0" dynsrc=";
" start="fileopen">

rm影像在線播放 代碼:
<object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=114 height=100>
<param name="_ExtentX" value="3016">
<param name="_ExtentY" value="2646">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="";>
<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>

加幾個控制器
<object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=427 height=300>
<param name="_ExtentX" value="11298">
<param name="_ExtentY" value="7938">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="";>
<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> <object id="vid2" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=427 height=30>
<param name="_ExtentX" value="11298">
<param name="_ExtentY" value="794">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="";>
<param name="CONTROLS" value="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>

連續播放歌曲
--------------------------------------------------------------------------------
  <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="286" height="225">
<param name="AudioStream" value="-1">
<param name="AutoSize" value="-1">
<param name="AutoStart" value="-1">
<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">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<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">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value>
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIstyle" value>
<param name="SAMIFileName" value>插入文件的地址(但這只能放一個音樂文件)
<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">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="0">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-600">
<param name="WindowlessVideo" value="0">
</object>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19477.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.