Thème multi

AperçuDescriptionCode HTML
AperçuLa description de l'exempleLe 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&amp;title=KyodayNoGilga|Garrison&amp;width=320&amp;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&amp;width=350&amp;height=200&amp;showstop=1&amp;showvolume=1&amp;title=1 2 3\nsoleil&amp;bgcolor1=8282B0&amp;bgcolor2=72729A&amp;playercolor=72729A&amp;buttoncolor=C69717&amp;buttonovercolor=E9B21A&amp;slidercolor1=CD9D17&amp;slidercolor2=B08614&amp;sliderovercolor=E9B21A&amp;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&amp;title=KyodaiNoGilga|garrison|KyodaiNoGilga|garrison|KyodaiNoGilga|garrison|KyodaiNoGilga|garrison&amp;width=320&amp;height=240&amp;showtime=1&amp;srt=1&amp;skin=player_flv_skin001.jpg&amp;margin=10&amp;startimage=rorobong.jpg&amp;playercolor=ffffff&amp;buttoncolor=333333&amp;buttonovercolor=999999&amp;slidercolor1=333333&amp;slidercolor2=0&amp;sliderovercolor=999999&amp;loadingcolor=0&amp;scrollbarcolor=333333&amp;scrollbarovercolor=0&amp;currentflvcolor=999900&amp;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.