in questa pagina cercherò di inserire alcune informazioni utili a chi volesse mettere, nel proprio sito, una pagina web con lo streaming di un video.
premessa: nei codici andrà inserito il link del video al posto del testo
*[LINK]*
premessa2: alcuni di questi script sono presi da alcuni tutorial di altri siti.
non ho avuto la possibilità di verificarne la funzionalità di tutti. quindi prego i più esperti (di me) di correggere eventuali errori, anche tramite MP. provvederò ad correggere gli esistenti e inserire eventuali nuovi script (o varianti di quelli esistenti) con grande piacere.
NB: in quasi tutti gli script è visibile -> width="
xxx" height="
yyy": sono le misure della finestra. Volendo si possono mettere a 100% entrambi per ottenere un full screen o se vanno inserite in una tabella. Il visore occuperà TUTTO lo spazio che gli dedicherete con la casella del
.
partiamo da un video WMV:
HTML Code:
<!-- For Internet Explorer * Windows Media Player -->
<object classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
type="application/x-oleobject" width="320" height="305"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components...">
<param name="url" value="*[LINK]*">
<param name="autostart" value="true">
<param name="ShowStatusBar" value="true">
<param name="volume" value="100">
<!-- For other browsers * Windows Media Player -->
<!--[if !IE]> <-->
<object width="320" height="305" type="application/x-mplayer2" >
<param name="fileName" value="*[LINK]*">
<param name="autostart" value="1">
<param name="ShowStatusBar" value="1">
<param name="volume" value="0">
</object>
<!--> <![endif]>
</object>
oppure
HTML Code:
<embed src="*[LINK]*" width="280" height="240" loop="false" controller="true" autoplay="true">
REAL VIDEO
HTML Code:
<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=400 height=300><PARAM NAME=SRC VALUE={content}><PARAM NAME=CONSOLE VALUE=*[LINK]*><PARAM NAME=CONTROLS VALUE=imagewindow><PARAM NAME=AUTOSTART VALUE=true></OBJECT><OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width=400><PARAM NAME=SRC VALUE={content}><PARAM NAME=AUTOSTART VALUE=-1><PARAM NAME=CONTROLS VALUE=controlpanel><PARAM NAME=CONSOLE VALUE=*[LINK]*></OBJECT>
QUICKTIME:
HTML Code:
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="272" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="*[LINK]*">
<param name="autoplay" value="true">
<param name="controller" value="true">
<embed src="*[LINK]*"
width="320" height="272" autoplay="true" controller="true"
pluginspage="http://www.apple.com/quicktime/download/" />
</object>
oppure
HTML Code:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="288"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="*[LINK]*">
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="false">
<EMBED SRC="sample.mov" WIDTH="160" HEIGHT="144"
AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>
MP4 (sempre tramite il quicktime)
HTML Code:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320"HEIGHT="257" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" ID="myMovie">
<PARAM name="SRC" VALUE="*[LINK]*">
<PARAM name="AUTOPLAY" VALUE="false">
<PARAM name="CONTROLLER" VALUE="true">
<EMBED SRC="*[LINK]*" WIDTH="320" HEIGHT="257" AUTOPLAY="false" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/" NAME="myMovie">
</EMBED>
</OBJECT>
FLV (Flash Video)
HTML Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="player_lite" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="player_lite.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="flashvars" value="url=*[LINK]*" />
<embed src="player_lite.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="player_lite" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="url=*[LINK]*" />
</object>
PPSTREAM:
HTML Code:
<OBJECT
CLASSID="clsid:5EC7C511-CD0F-42E6-830C-1BD9882F3458"
CODEBASE="powerplayer.cab"
WIDTH=400 HEIGHT=300 align="middle"
standby="Loading Player"
ID="powerplayer">
<param name="src" value="*[LINK]*">
<param name="showabout" value="0">
<param name="showposition" value="0">
<param name="ShowControl" value="0">
<param name="autostart" value="1">
</OBJECT>
TVANTS
HTML Code:
<object id="TvantsX" classid="CLSID:4C833081-D026-4FF8-968F-7EAB660D2FBA" codebase="http://download.tvants.com/pub/tvants/tvants1/win32/cab/tvants.cab#Version=1,0,0,58" standby="Loading Tencent QQLive components..." height="100%" width="100%">
<param name="URL" value="*[LINK]*">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="playCount" value="1">
<param name="autoSize" value="1">
<param name="autoStart" value="1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="volume" value="100">
<param name="mute" value="-1">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="1">
<param name="enabled" value="1">
<param name="enableContextMenu" value="1">
<param name="fullScreen" value="-1">
<param name="enableErrorDialogs" value="0">
</object>
SOPCAST
in alto, tra < head > e < /head >
HTML Code:
<script>
window.onload=function()
{
InitPlayer();
AutoPlay('*LINK*', '');
}
</script>
e nel della pagina
HTML Code:
<OBJECT ID="SopPlayer" name = "SopPlayer" CLASSID=clsid:8FEFF364-6A5F-4966-A917-A3AC28411659 HEIGHT=328 WIDTH=392></OBJECT>
TVKOO (senza scelta di canale, solo il player)
HTML Code:
<object classid="clsid:39D420B3-E0EB-424C-89AA-C24F8DE7EF79" id="KooPlayer1" standby="¼ÓÔØKooPlayer..." codebase="http://www.tvkoo.com/update/KooPlayer.ocx#version=1,0,0,51" height="100%" width="100%">
<param name="_Version" value="65537">
<param name="_ExtentX" value="18177">
<param name="_ExtentY" value="10266">
<param name="_StockProps" value="0">
<param name="bAutoHideControl" value="0">
<param name="iDispGroup" value="0">
</object>
VJ STUDIO (al posto del link c'è il nome utente con cui ci si è registrati)
HTML Code:
<object id="Vjctl"
classid="CLSID:B40E5603-A161-47fb-9989-9206D87D6B05"
codebase="http://www.vjbase.cn/download/vjctl.cab#version=1,2,1117,0"
width=320 height=240><param name="UserName"
value="IL_TUO_NICK">
</object>
CCIPTV
HTML Code:
<object
classid="CLSID:EEEA11B7-7AD2-4CDB-BDFC-E53EF09B7B94", id=CCIPTVCTRL1 width=721 height=475>
<param name=ChannelUrl value=*LINK*>
<param name=EnableContextMenu value=1 >
<param name=AutoStart value=1 >
<param name=ControlWnd value=1 >
</object>
Files DIVX
HTML Code:
<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="400" width="720" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616">
<param name="src" value="*LINK*" />
<param name="custommode" value="Stage6" />
<param name="showpostplaybackad" value="false" />
<embed type="video/divx" src="*LINK*" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" height="400" width="720" />
<param name="autoPlay" value="false" />
</object>
ABN
__________________
«Fino a quando il colore della pelle sarà più importante del colore degli occhi ci sarà sempre la guerra.» Bob Marley
Last edited by ABNormal : 05-31-2007 at 10:13 AM.