How to chance jw players skin

RIDVAN
RIDVAN
Offline
0
hi germi,
can you tell me that where is the jw player and its code in mc ?
i want to change its skin with this one : http://www.longtailvideo.com/addons/skins/59/modieus-%28stylish%29-slim?q=
Responses (7)
  • Accepted Answer

    Wednesday, September 02 2009, 03:14 PM - #Permalink
    0
    hello

    I'm afraid there's no parameter for changing the skin on the current version of JW Player, so you'll have to do it manually, entering on the code.

    the code is printed on

    plugins/muscolplayers/jwplayer.php

    you'll have to add the skin adding the correct line of code on the correct places:
    s".$unique_id.".addVariable('skin','skinfile.swf');

    around lines 97 and 117

    do it only if you know what you're doing.

    place the skin file on the folder

    /plugins/muscolplayers/jwplayer/

    if it does not load, try to write the absolute path (including the "
    /plugins/muscolplayers/jwplayer/") when calling the skin

    again: Do this only if you understand what you're doing, DONT MESS with code you dont understand.

    good luck
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Wednesday, September 02 2009, 04:07 PM - #Permalink
    0
    so nothing changed
    there re two of jw player codes in jwplayer.php
    i tried :
    -adding code to all lines one by one
    -adding full path of skin,
    -another skin file,
    -adding the code 2 of jw player codes in the same time,
    -also i cleaned cache...

    what can i try else ? :)
    thanks for your kind help...


    if($multi){
    $playlist_url = urlencode($playlist_url);
    $player = $uri->base() . "plugins/muscolplayers/jwplayer/player.swf" ;
    $unique_id = time();
    $object = "The player will show in this paragraph


    var s".$unique_id." = new SWFObject('".$player."','album_player','".$width."','".$height."','9');
    s".$unique_id.".addParam('allowfullscreen','true');
    s".$unique_id.".addParam('allowscriptaccess','always');
    s".$unique_id.".addParam('flashvars','file=".$playlist_url. $string_params . "&autostart=false&repeat=list');
    s".$unique_id.".write('album_player_".$unique_id."');

    var album_player = document.getElementById('album_player');

    ";

    } else {

    $player = $uri->base() . "plugins/muscolplayers/jwplayer/player.swf" ;

    if($params->get('working_mode') || $options["force_show_player"] ){

    $unique_id = $song->id;
    $object = "The player will show in this paragraph


    var s".$unique_id." = new SWFObject('".$player."','player','".$width."','".$height."','9');
    s".$unique_id.".addVariable('skin','stylish_slim.swf');
    s".$unique_id.".addParam('allowfullscreen','true');
    s".$unique_id.".addParam('allowscriptaccess','always');
    s".$unique_id.".addParam('flashvars','file=".$song->filename."&duration=".$song->length . $string_params . "&autostart=false');
    s".$unique_id.".write('single_player_".$unique_id."');

    ";
    }
    else{
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 02 2009, 05:29 PM - #Permalink
    0
    hey but you didnt add the "addVariable" thing to the first player... only on the second one (wich usually is not shown, if working on mode "only one player per album")

    do you know what I mean?
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Wednesday, September 02 2009, 10:25 PM - #Permalink
    0
    yes i did it before,
    now again tried but not working,
    added the jwplayer.php to zip file, pls take a look it [file name=jwplayer.zip size=1873]http://www.joomlamusicsolutions.com/images/fbfiles/files/jwplayer.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 03:16 PM - #Permalink
    0
    well, I found out what I told you wrong :lol:

    the skin must be added in the flashvar param, not outside it (like I told you). My mistake

    so the code should look like:

    s".$unique_id.".addParam('flashvars','file=".$playlist_url. $string_params . "&autostart=false&repeat=list&skin=".$uri->base()."plugins/muscolplayers/jwplayer/stylish_slim.swf');


    :) by the way, that will change the skin on the PLUGIN, but not on the module. if you want to change to the module too, you'll have to do the same on the module file:

    /modules/mod_muscol_jwplayer/helper.php

    hope it works this time! :)
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Thursday, September 03 2009, 05:43 PM - #Permalink
    0
    yes it works, but know the problem is height of player,where can i change the height&width? :)

    i tried this line but nothing changed
    var s".$unique_id." = new SWFObject('".$player."','player','".$width."','".$height."','9');


    i promise this's my last question :P
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 05:47 PM - #Permalink
    0
    this is changed by parameter... look at the parameters of the plugin & module :)
    The reply is currently minimized Show
Your Reply