Tom's Guide > Forum > Programmation > probleme avec un skin pour WMP

probleme avec un skin pour WMP

Forum Programmation : probleme avec un skin pour WMP

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

Bonjour tout le monde, je suis en train de créer un skin pour WMP et j'ai un probleme car je n'arrive pas a faire afficher la playlist.

Alors pour plus de comprehension voici le code.

Code :
  1. <!--
  2. ©Perachon Luc. All rights reserved.
  3. -->
  4. <theme id="mon-player"
  5.     author="Perachon Luc"
  6.     copyright="Luc Perachon. All rights reserved."
  7.     >
  8.     <view
  9.         width="496 px" height="181 px"
  10.         backgroundColor="none"
  11.         titleBar="false" resizable="false"
  12.         scriptFile="animation.js;audio.js;res://wmploc.dll/RT_TEXT/#132;"
  13.         timerInterval="333"
  14.         onTimer="OnTimerTick();"
  15.         onLoad="Init();"
  16.         >
  17.        
  18.        
  19.         <player
  20.             PlayState_onchange="OnPlayStateChange();"
  21.             OpenState_onchange="OnOpenStateChange();"
  22.             >
  23.         </player>
  24.        
  25.                                                 <!--&nb sp;ANIMATION OUVERTURE -->
  26.                                                
  27.         <!-- OUVERTURE DROITE -->
  28.         <subview zIndex="5" backgroundImage="body_slider_c.png" id="drawer" left="170" top="0" transparencyColor="#390539" ><button left="80" top="77" id="drawerButton" image="b_s_2.png" ho verImage="b_s_2.png" downImage="b_s_3.png" transparencyColor="#390539" upToolTip="Show Visuals" onClick="JScript:moveDrawer();JScript:moveDrawer3();" cursor="hand">
  29. </button>
  30. </subview>   
  31.         <!-- OUVERTURE GAUCHE -->
  32.         <subview zIndex="5"
  33.       left="0" top="0" showBackground="false" backgroundImage="gauche_normale.png" transparencyColor="#390539" id="drawer3">
  34.      
  35.       <!-- CONTROL AUDIO -->
  36.      
  37. <buttongroup left="0" top="0" zIndex="5" image="gauche_normale.png" hoverImage="gauche_normale.png" downImage="gauche_clic.png" disabledImage="gauche_disable.png" mappingImage="gauche_map.png">
  38. <prevelement mappingColor="#0999fe"></prevelement>
  39. <playelement mappingColor = "#e520fc" upTooltip="Open" onClick = "JScript:player.URL=theme.openDialog('FILE_OPEN','FILES_ALL');" />
  40. <playelement mappingColor="#0a8a34" tabStop="wmpprop:player.controls.play"></playelement>
  41. <stopelement mappingColor="#6aea82"></stopelement>
  42. <nextelement mappingColor="#fed909"></nextelement>
  43. </buttongroup>
  44. <pausebutton left="159" top="76" zIndex="5" visible="wmpenabled:player.controls.pause"    image="pause.png" hoverImage="pause.png" downImage="pause_clic.png" transparencyColor="#ff00ff">
  45. </pausebutton>
  46. </subview>
  47.                        
  48.                     <!-- ZONE MILIEU -->
  49.                    
  50. <subview zIndex="-1"
  51.             left="167" top="9"
  52.             backgroundImage="milieu_player.png"
  53.             transparencyColor="#390539"
  54.             >
  55.            
  56.             <!-- OUVRIR FERMER AGRANDIR AUDIO VOLUME PLAYLIST-->
  57.            
  58.             <buttongroup zIndex="1"
  59.             id="bgMinClose" left="0" top="0" showBackground="true"
  60.             image="milieu.png"
  61.             mappingImage="milieu_map.png"
  62.             downImage="milieu.png"
  63.             hoverImage="milieu_passage.png">
  64.            
  65.             <buttonelement id="min" mappingColor="#fd020e" upToolTip="Réduire" onclick="view.minimize();"/>
  66.             <buttonelement id="close" mappingColor="#02fd55" upToolTip="Fermer" onclick="view.close();"/>
  67.             <buttonelement id="full" mappingColor="#fdee02" upToolTip="entier" onclick="view.returnToMediaCenter();"/>
  68.             <buttonelement
  69.                     mappingColor="#3e43f9"
  70.                     upToolTip="View Vizualisation"
  71.                     onClick="ToggleVis();"
  72.                     >
  73.                 </buttonelement>
  74.                 <buttonelement id="bgToggleInfo"
  75.                     mappingColor="#b28d33"
  76.                     upToolTip="View Info Box"
  77.                     onClick="ToggleInfo();"
  78.                     >
  79.                 </buttonelement>
  80.                 <buttonelement id="Pl"
  81.                     mappingColor="#45eaaa"
  82.                     upToolTip="View Playlist"
  83.                     onClick="TogglePlaylist();"
  84.                     >
  85.                 </buttonelement>
  86.                 <buttonelement id="bgToggleEq"
  87.                     mappingColor="#eb88eb"
  88.                     upToolTip="View Graphic Equalizer"
  89.                     onClick="ToggleEq();"
  90.                     >
  91.                 </buttonelement>
  92.             </buttongroup>
  93.        
  94.        
  95.         </subview>   
  96.           <!-- VISUALISATION -->
  97.          
  98.           <subview id="visualisation" zIndex="-1"
  99.             left="172" top="46"
  100.             backgroundImage="screen.png"
  101.             >
  102.             </subview>
  103.            
  104.         <effects id="visEffects" zIndex="-1"
  105.             left="172" top="46" width="148" height="83"
  106.             windowed="false" visible="true"
  107.             currentEffectType="batterie"
  108.             currentPreset="1"
  109.             onClick="visEffects.previous();"
  110.             onDblClick="JScript:visEffects.settings();"
  111.             >
  112.             </effects>
  113.             <!-- AVANCEMENT(SEEK) -->
  114.            
  115.     <slider id="seek" zIndex="1"
  116.                 left="172" top="153" height="19" width="150"
  117.                 toolTip="Seek"
  118.                 direction="Horizontal" tiled="true"
  119.                 thumbImage="bouton_seek.png"
  120.                 transparencyColor="#390539"
  121.                 borderSize="20" min="0"
  122.                 max="wmpprop:player.currentmedia.duration"
  123.                 value="wmpprop:player.Controls.currentPosition"
  124.                 onDragEnd="player.controls.currentposition=value;"
  125.                 >
  126.            
  127.             </slider>       
  128.       <!-- INFO LECTURE EN COUR -->
  129. <text id="metadata"
  130.                 left="172" top="135" width="90" height="15"
  131.                 justification="Left"
  132.                 fontSize="9"
  133.                 ForegroundColor = "#3E5045"
  134.                 value="wmpprop:player.currentmedia.name"
  135.                 ></text>
  136.                 <text left="285" top="135" width="37" height="15"
  137.                     foregroundColor="#3E5045" fontSize="8" FontType="Verdana"
  138.                     justification="Right"
  139.                     value="wmpprop:player.controls.currentPositionString"
  140.                     >
  141.               </text>
  142.                          
  143.         <!-- PLAYLIST -->
  144.                      
  145.                       <subview id="Pl"
  146.                 left="172" top="45" width="154" height="84"
  147.                 visible="false"
  148.                 backgroundstyle="color: #cccccc">
  149.                 <playlist id="pl"
  150.                     left="0" top="0" width="154" height="84"
  151.                     backgroundolor="#cccccc"
  152.                     itemPlayingbackgroundColor="#CBDFD3"
  153.                     itemPlayingColor="#000000"
  154.                     foregroundColor="#46563C"
  155.                     columnsVisible="false"
  156.                     columns="name=Name;Duration=Time"
  157.                     editButtonsVisible="false"
  158.                     moveButtonsVisible="false"
  159.                     dropDownVisible="true"
  160.                     playlistItemsVisible="true"
  161.                     visible="false"
  162.                     fontSize="7" fontType="Verdana"
  163.                     >
  164.                 </playlist>
  165.                 </subview>     
  166.            
  167.            
  168. </view>
  169. </theme>



C'est mon premier skin et je me base sur des exemples donc j'aimerais savoir si mon code est bon mais si il faut pas un autre fichier en .js pour la playlist.

------------------------------ les conséquences de la colère sont beaucoup plus importantes que ses causes !! :-D
Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.
Tom's Guide > Forum > Programmation > probleme avec un skin pour WMP
Aller à :

Il y a 276 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens