Changeset 31820 in spip-zone


Ignore:
Timestamp:
Sep 27, 2009, 2:09:22 PM (11 years ago)
Author:
paladin@…
Message:

le player est celui choisi en page de config ?

Location:
_plugins_/Lecteur_multimedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/Lecteur_multimedia/player_fonctions.php

    r31819 r31820  
    1313
    1414function Player_head(){
    15         $flux = "";
    16         $flux .= '<script type="text/javascript" src="'.find_in_path('soundmanager/soundmanager2.js').'"></script>';
    17         $flux .= '<script type="text/javascript"><!--'."\n"
    18         . 'var musicplayerurl="'.find_in_path('flash/eraplayer_playlist.swf').'";'."\n"
    19         . 'var image_play="'.find_in_path('images/playl.gif').'";'."\n"
    20         . 'var image_pause="'.find_in_path('images/pausel.gif').'";'."\n"
    21         . 'soundManager.url = "'.find_in_path('soundmanager/soundmanager2.swf').'";'."\n"
    22         . 'soundManager.nullURL = "'.find_in_path('soundmanager/null.mp3').'";'."\n"
    23         . 'var videoNullUrl = "'._DIR_PLUGIN_PLAYER.'null.flv";'."\n"
    24         . 'var DIR_PLUGIN_PLAYER = "'._DIR_PLUGIN_PLAYER.'";'
    25         . "//--></script>\n";
     15       
     16        $player_ = ($p = $GLOBALS['meta']['player']) ? $p : _PLAYER_MP3_LECTEUR_DEFAULT;
     17       
     18        $flux = ""
     19                . '<script type="text/javascript" src="'.find_in_path('soundmanager/soundmanager2.js').'"></script>'
     20                . '<script type="text/javascript"><!--' . "\n"
     21                // . 'var musicplayerurl="'.find_in_path('flash/eraplayer_playlist.swf').'";'."\n"
     22                . 'var musicplayerurl="' . find_in_path('flash/' . $player_ . '.swf') . '";'."\n"
     23                . 'var image_play="'.find_in_path('images/playl.gif').'";'."\n"
     24                . 'var image_pause="'.find_in_path('images/pausel.gif').'";'."\n"
     25                . 'soundManager.url = "'.find_in_path('soundmanager/soundmanager2.swf').'";'."\n"
     26                . 'soundManager.nullURL = "'.find_in_path('soundmanager/null.mp3').'";'."\n"
     27                . 'var videoNullUrl = "'._DIR_PLUGIN_PLAYER.'null.flv";'."\n"
     28                . 'var DIR_PLUGIN_PLAYER = "'._DIR_PLUGIN_PLAYER.'";'
     29                . "//--></script>\n";
    2630       
    2731        $flux .= '<script type="text/javascript" src="'._DIR_PLUGIN_PLAYER.'javascript/jscroller.js"></script>'."\n";
  • _plugins_/Lecteur_multimedia/player_options.php

    r19360 r31820  
    1616        define("_PLAYER_META_PREFERENCES", "player_preferences");
    1717
     18        define("_PLAYER_MP3_LECTEUR_DEFAULT", "eraplayer_playlist.swf"); // le plus leger
     19       
    1820        define("_PLAYER_FLV_LECTEUR_DEFAULT", "player_flv_maxi.swf");
    1921       
Note: See TracChangeset for help on using the changeset viewer.