Aperçu | Description | Code HTML |
---|---|---|
Aperçu | La description de l'exemple | Le code HTML de l'exemple |
Affichage par défaut, sans options.
Contrôles Javascript: PLAY - PAUSE - STOP - PREVIOUS - NEXT - MUTE - VOLUME 200 |
<object type="application/x-shockwave-flash" data="player_flv.swf" width="320" height="240"> <param name="movie" value="player_flv.swf" /> <param name="FlashVars" value="flv=KyodaiNoGilga.flv|garrison.flv&title=KyodayNoGilga|Garrison&width=320&height=240" /> </object> <script language="Javascript"> function getFlashObject(movieName) { if (window.document[movieName]) { return window.document[movieName]; } if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; } else { return document.getElementById(movieName); } } function play(index) { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsPlay", index); } function pause() { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsPause", ""); } function stop() { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsStop", ""); } function next() { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsNext", ""); } function previous() { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsPrevious", ""); } function mute() { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsVolume", "0"); } function volume(n) { var flash = getFlashObject("monFlash"); flash.SetVariable("player:jsVolume", n); } </script> |
|
Changement de taille et de couleur. Utilisation d'un titre avant le lancement de la vidéo. |
<object type="application/x-shockwave-flash" data="player_flv_multi.swf" width="350" height="200"> <param name="movie" value="player_flv_multi.swf" /> <param name="FlashVars" value="flv=KyodaiNoGilga.flv&width=350&height=200&showstop=1&showvolume=1&title=1 2 3\nsoleil&bgcolor1=8282B0&bgcolor2=72729A&playercolor=72729A&buttoncolor=C69717&buttonovercolor=E9B21A&slidercolor1=CD9D17&slidercolor2=B08614&sliderovercolor=E9B21A&loadingcolor=E9B21A" /> </object> |
|
Un autre exemple avec un skin, une image de départ, l'affichage du temps et l'utilisation des sous-titres. |
<object type="application/x-shockwave-flash" data="player_flv_multi.swf" width="150" height="300"> <param name="movie" value="player_flv_multi.swf" /> <param name="allowfullscreen" value="true" /> <param name="FlashVars" value="flv=KyodaiNoGilga.flv|garrison.flv|KyodaiNoGilga.flv|garrison.flv|KyodaiNoGilga.flv|garrison.flv|KyodaiNoGilga.flv|garrison.flv&title=KyodaiNoGilga|garrison|KyodaiNoGilga|garrison|KyodaiNoGilga|garrison|KyodaiNoGilga|garrison&width=320&height=240&showtime=1&srt=1&skin=player_flv_skin001.jpg&margin=10&startimage=rorobong.jpg&playercolor=ffffff&buttoncolor=333333&buttonovercolor=999999&slidercolor1=333333&slidercolor2=0&sliderovercolor=999999&loadingcolor=0&scrollbarcolor=333333&scrollbarovercolor=0&currentflvcolor=999900&showfullscreen=1" /> </object> |
|
Utilisation d'un fichier de configuration avec priorité sur les paramètres HTML. Voir le fichier de configuration en texte. |
<object type="application/x-shockwave-flash" data="player_flv_multi.swf" width="320" height="240"> <param name="movie" value="player_flv_multi.swf" /> <param name="FlashVars" value="config=flv_config_multi.txt" /> </object> |
|
Même chose en XML. Voir le fichier de configuration en XML. |
<object type="application/x-shockwave-flash" data="player_flv_multi.swf" width="320" height="240"> <param name="movie" value="player_flv_multi.swf" /> <param name="FlashVars" value="configxml=flv_config_multi.xml" /> </object> |
Plus d'information sur la page officielle.