s9y: Flashplayer anpassen
Um seine selbst gedrehten Videos im hauseigenen Blog der Welt zu präsentieren, reicht es bei Serendipity eigentlich aus, das Easy Podcasting Plugin zu installieren. Funktioniert auch wirklich super, allerdings lässt die Optik des verwendeten Flashplayers (JW Media Player) doch ziemlich zu wünschen übrig. Ein Blick auf die Webseite des Herstellers zeigt dann ziemlich schnell, das Andere ähnliche Gedanken hatten.
Jetzt stellt sich allerdings die Frage, wie ich Serendipity dazu bringe das neue Skin zu verwenden. Eigentlich ziemlich einfach ... gewünschtes Skin (in meinem Bespiel overlay) herunterladen und die Datei podcast_player.php im Plugin Verzeichnis (/plugins/serendipity_event_podcast) anpassen.
Suche nach:
Ersetze durch:
Im Anschluss einfach das heruntergeladenen Skin in das Verzeichnis /plugins/serendipity_event_podcast/player/ hochladen und bitte achtet darauf, das der Name in meinem Beispiel overlay.swf ggf. angepasst werden muss.
Nachtrag:
Alle Änderungen gemacht und der Flashplayer sieht immer noch so aus wir früher? Einfach mal den Eintrag erneut abspeichern!
Jetzt stellt sich allerdings die Frage, wie ich Serendipity dazu bringe das neue Skin zu verwenden. Eigentlich ziemlich einfach ... gewünschtes Skin (in meinem Bespiel overlay) herunterladen und die Datei podcast_player.php im Plugin Verzeichnis (/plugins/serendipity_event_podcast) anpassen.
Suche nach:
@DEFINE('PLUGIN_PODCAST_FLVPLAYER' ,'
<p class="podcasting" id="podcast_&filename;"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player. JavaScript is also needed to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("&plugin;/player/flvplayer.swf","single","&intwidth;","&intheight;","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","&url;");
s1.addVariable("image","#url_noext#.jpg");
s1.write("podcast_&filename;");
</script>
');
<p class="podcasting" id="podcast_&filename;"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player. JavaScript is also needed to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("&plugin;/player/flvplayer.swf","single","&intwidth;","&intheight;","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","&url;");
s1.addVariable("image","#url_noext#.jpg");
s1.write("podcast_&filename;");
</script>
');
Ersetze durch:
@DEFINE('PLUGIN_PODCAST_FLVPLAYER' ,'
<p class="podcasting" id="podcast_&filename;"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player. JavaScript is also needed to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("&plugin;/player/flvplayer.swf","single","&intwidth;","&intheight;","7");
s1.addParam("allowfullscreen","true");
s1.addParam("flashvars","file=&url;&image=#url_noext#.jpg&frontcolor=ffffff&lightcolor=00A1E1&skin=&plugin;/player/overlay.swf&controlbar=over&stretching=fill");
s1.addVariable("file","&url;");
s1.addVariable("image","#url_noext#.jpg");
s1.write("podcast_&filename;");
</script>
');
<p class="podcasting" id="podcast_&filename;"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player. JavaScript is also needed to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("&plugin;/player/flvplayer.swf","single","&intwidth;","&intheight;","7");
s1.addParam("allowfullscreen","true");
s1.addParam("flashvars","file=&url;&image=#url_noext#.jpg&frontcolor=ffffff&lightcolor=00A1E1&skin=&plugin;/player/overlay.swf&controlbar=over&stretching=fill");
s1.addVariable("file","&url;");
s1.addVariable("image","#url_noext#.jpg");
s1.write("podcast_&filename;");
</script>
');
Im Anschluss einfach das heruntergeladenen Skin in das Verzeichnis /plugins/serendipity_event_podcast/player/ hochladen und bitte achtet darauf, das der Name in meinem Beispiel overlay.swf ggf. angepasst werden muss.
Nachtrag:
Alle Änderungen gemacht und der Flashplayer sieht immer noch so aus wir früher? Einfach mal den Eintrag erneut abspeichern!
Kommentare
Ansicht der Kommentare: Linear | Verschachtelt