Mettre une video en streaming au format REAL
accueil >
Cours >
HTML >
Mettre une video en streaming au format REAL
Cours / tutoriel écrit le 17-06-2010 par sky
Outils indispensable avant de commencer :
Un convertisseur de format telle que Easy Real Converter pour convertir vos fichiers video au format video de streaming real.
Un éditeur de texte. (notepad ou un autre éditeur)
Un espace web qui supporte le streaming.
1er étape :
Convertir votre fichier video au format Real (.rm). On va dire par convention que vous nommerai le fichier ainsi créer test.rm
2ème étape :
Créer un fichier méta, avec l'adresse de votre fichier video test.rpm.
Ex :
http://www.votresite.net/repertoire/test.rm
3ème étape :
créer un fichier html pour lire votre video sur une page html :
Créer une page test.html, et copier coller le code qui suit :
<html>
<body>
<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height=180 width=320>
<param name="controls" value="ImageWindow">
<param name="console" value="Clip1">
<param name="autostart" value="false">
<param name="src" value="test.rpm">
<embed src="test.rpm" type="audio/x-pn-realaudio-plugin" console="Clip1" CONTROLS="PlayButton" height=180 width=320 autostart=false></embed>
</object>
</body>
</html>
Si vous voulez mettre un bouton "play" et "stop" :
<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=25 WIDTH=45>
<PARAM NAME="controls" VALUE="PlayButton">
<PARAM NAME="console" VALUE="Clip1">
<EMBED type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="PlayButton" HEIGHT=25 WIDTH=45 AUTOSTART=false>
</OBJECT>
<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=25 WIDTH=35>
<PARAM NAME="controls" VALUE="StopButton">
<PARAM NAME="console" VALUE="Clip1">
<EMBED type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="StopButton" HEIGHT=25 WIDTH=35 AUTOSTART=false>
</OBJECT>
Fin :
A la fin, vous devriez vous retrouver avec 3 fichiers :
Un fichier video nommer test.rm
Un fichier méta nommer test.rpm
Un fichier html nommer test.html
Pour une intégration quicktime ou média player, c'est le même principe.
Commentaires
steksetazerty le 17-12-2010
super!