Ako urobit na webe prehravac aby sa v nom dali spustat videa zobrazene na stranke. podobne ako youtube taky player
cosi som nasiel
<embed src="MVI_1799.AVI" quality="high" bgcolor="#99CCCC" width="550" height="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align="absmiddle">
ale v mozille mi zobrazi len ramik a nic viac poradi niekto ako to vyriesit
nieco taketo
<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="350"
HEIGHT="290"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
ID=meno objektu s cim sa manipuluje>
<PARAM NAME="MOVIE" VALUE="nazov videa">
<PARAM NAME="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="SCALE" VALUE="SHOWALL">
<EMBED
NAME="meno objektu s cim sa manipuluje"
SRC="nazov videa"
WIDTH="350"
HEIGHT="290"
PLAY="false"
LOOP="false"
QUALITY="high"
SCALE="SHOWALL"
swLiveConnect="true"
PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">
</EMBED>
</OBJECT>
Zakladem je, ze do stranky stahnes flashovou aplikaci, ktere predas jako parametr video, ktere bude stahovat a prehravat .. Horsi strankou je, ze takovy flashovy prehravac jen tak neni zadarmo (zdarma jsem znal jeden - ted uz si nevzpomenu, ale v nazvu byla myslim ryba "fish" ..)..
To, co napsal "app" je sice pekne, ale vyzaduje to podporu pro prehravac v prohlizeci (muzes porovna videa napriklad na idnes.cz s youtube.com) - pro jednoduchost to castokrat staci .. Ale nez tupe naplacat parametry do "app"ova prikladu, bude lepsi kdyz si k tomu neco prectes.. ;)
app dik to druhe poznam ale to prve nejde nesek si se nekde?
nie to vsetko som tam dal ako celok, takze sa zacina s tagom <OBJECT> a skonci sa tagom</OBJECT>, tak ze <EMBED> vlozis medzi tagy <OBJECT></OBJECT>
<OBJECT - tu zacina
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="350"
HEIGHT="290"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
ID=meno objektu s cim sa manipuluje>
<PARAM NAME="MOVIE" VALUE="nazov videa">
<PARAM NAME="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="SCALE" VALUE="SHOWALL">
<EMBED
NAME="meno objektu s cim sa manipuluje"
SRC="nazov videa"
WIDTH="350"
HEIGHT="290"
PLAY="false"
LOOP="false"
QUALITY="high"
SCALE="SHOWALL"
swLiveConnect="true"
PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">
</EMBED>
</OBJECT> tu skonci
mne to funguje a mam to takto
<SCRIPT LANGUAGE="JavaScript">
<!--
var movieName = "testcommand";
function thisMovie(movieName) {
if (navigator.appName.indexOf ("Microsoft") !=-1) {
return window[movieName]
} else {
return document[movieName]
}
}
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != "undefined") {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
function playmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).Play();
}
}
function stopmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).StopPlay();
}
}
function go(theFrame) {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).GotoFrame(theFrame);
}
}
//-->
</SCRIPT>
<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="350"
HEIGHT="290"
CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
ID=testcommand>
<PARAM NAME="MOVIE" VALUE="videos/proba.swf">
<PARAM NAME="PLAY" VALUE="false">
<PARAM NAME="LOOP" VALUE="false">
<PARAM NAME="QUALITY" VALUE="high">
<PARAM NAME="SCALE" VALUE="SHOWALL">
<EMBED
NAME="testcommand"
SRC="videos/proba.swf"
WIDTH="350"
HEIGHT="290"
PLAY="false"
LOOP="false"
QUALITY="high"
SCALE="SHOWALL"
swLiveConnect="true"
PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">
</EMBED>
</OBJECT>
<form>
<input type="button" style="height: 22px; width: 100px" value= "Spustiť" onclick="playmovie()">
<input type="button" style="height: 22px; width: 100px" value="Zastaviť" onclick="stopmovie()">
<input type="button" style="height: 22px; width: 100px" value="Začiatok" onclick="go(2)">
</form>
Na jedněch svých stránkách provozuji JW FLV Media Player. Je zdarma a flash videa v něm jedou jedou v IE i v FF.
=app=
Kdyz si video prevedes do flashe a pak jej pouze takto poustis, tak s tim neni zadny problem .. ovsem pokud clovek vyzaduje/potrebuje/chce sofistikovanejsi prehravac (posunovani, hlasitost at..) a nechce prevadet vsechna videa do flashe, tak je lepsi pouzit klasicky flashovy prehravac :)
=zbi=
Spatne nevypada napriklad Flowplayer (GPL, http://flowplayer.org/), ale nezkousel jsem jej. Pracoval jsem s jinym - ktery si sakra nemuzu vzpomenou, jak se jmenoval (ani vygooglit se mi jej nedari..) ..
=Freeze= no mas pravdu. Prave som skusal ten link co si vlozil.
Ja pouzivam OS distro Debian a tam tu funguje naplno... , tak dikes
zbi: vyzera dobre. jake formaty cez to prehravas
Přehrávám FLV, ale zkoušel jsem i MP3.
Podle stránek umí: FLV, MP4, MP3, AAC, JPG, PNG a GIF.
Zkoušel jsem i OGG, ale to neumí.
a neco na klasiku ako avi, mpeg... niekto neviete