{"id":1323,"date":"2011-11-28T20:53:48","date_gmt":"2011-11-28T19:53:48","guid":{"rendered":"http:\/\/www.planete-flop.fr\/blog\/?page_id=1323"},"modified":"2011-11-28T21:02:10","modified_gmt":"2011-11-28T20:02:10","slug":"plugin-pour-piwigo-music-player","status":"publish","type":"page","link":"http:\/\/www.planete-flop.fr\/blog\/plugin-pour-piwigo-music-player\/","title":{"rendered":"Plugin pour Piwigo : Music Player"},"content":{"rendered":"<p>[fr]Ouvre dans une pop_up le lecteur et ses playlists, permettant alors d&#8217;\u00e9couter de la musique en mp3 tout au long de la visite ! Le plugin g\u00e8re les mp3 en playlist, les playlist distantes en xml, et les podcast ! On peut aussi afficher une image par playlist, personnaliser le lecteur et la popup&#8230;<br \/>\n<div id='gallery-1' class='gallery galleryid-1323 gallery-columns-2 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-150x150.png 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-36x36.png 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-115x115.png 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-150x150.png 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-36x36.png 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-115x115.png 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-150x150.jpg 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-36x36.jpg 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-115x115.jpg 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-150x150.jpg 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-36x36.jpg 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-115x115.jpg 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n<\/p>\n<h1><strong>Ou mettre mes mp3 ?<\/strong><\/h1>\n<p>Les  mp3 doivent \u00eatre mis dans le dossier music du plugin de cette fa\u00e7on  &#8220;[le dossier de pwg]\/plugins\/music_player\/music\/[nouvelle playlist]\/&#8221;.  Il est conseill\u00e9 de faire des playlist par artiste (music\/moby\/go.pm3),  ou sinon mettre le nom de l&#8217;artiste dans le nom du fichier mp3  (music\/electro\/moby-go.pm3)<\/p>\n<div id=\"q2\">\n<h3><strong>J&#8217;ai rajout\u00e9 des mp3 mais ils n&#8217;apparaissent pas dans la playlist !<\/strong><\/h3>\n<p>Vous  n&#8217;avez pas remis \u00e0 jour la playlist : pour ce faire cliquez sur la 2\u00b0  ic\u00f4ne (&#8216;G\u00e9rer la musique&#8217;) \u00e0 cot\u00e9 de la playlist concern\u00e9e, puis \u00e0 la  derni\u00e8re \u00e9tape faites &#8216;Valider les modifications&#8217;<\/p>\n<\/div>\n<div id=\"q3\">\n<h3><strong>A quoi correspond l&#8217;option &#8216;Afficher la miniature de la playlist&#8217; ?<\/strong><\/h3>\n<p>Il  s&#8217;agit d&#8217;une miniature que vous pouvez ajouter en cliquant sur la 3\u00b0  ic\u00f4ne (&#8216;G\u00e9rer la miniature&#8217;) \u00e0 cot\u00e9 de la playlist concern\u00e9e<\/p>\n<\/div>\n<div id=\"q4\">\n<h1><strong>Comment fonctionne le plugin ?<\/strong><\/h1>\n<p>Le plugin permet de cr\u00e9er et g\u00e9rer des playlist, de personnaliser l&#8217;affichage du lecteur et de sa pop-up.<br \/>\npour cr\u00e9er une playlist :<br \/>\n&#8211; Tout d&#8217;abord assurez-vous que vous avez bien un dossier \/music  dans le r\u00e9pertoire du plugin. IMPORTANT !! (utilisateur de Free vous  n&#8217;\u00eates pas concern\u00e9s par la mention qui suit) Le dossier \/music doit  avoir touts les autorisations en \u00e9criture\/lecture, en d&#8217;autre termes, un  chmod de 777 ou rwxrwxrwx.<br \/>\n&#8211; Ensuite, vous cr\u00e9ez un dossier dans ce dossier \/music qui  contiendra les mp3 et surtout la playlist en .xml. Attention : le nom du  dossier est primordial : DONC EVITER LES CARATERES SPECIAUX ET  GUILLEMETS dans le nom des dossiers<br \/>\n&#8211; on clique sur &#8216;Synchroniser avec le dossier \/music&#8217; : les dossiers  dans music sont list\u00e9s ainsi que les fichiers mp3 contenus dans chacuns  d&#8217;eux. Les playlists au format xml sont cr\u00e9\u00e9s en ayant pour nom celui  du dossier.<br \/>\n&#8211; r\u00e9ception du formulaire : il sert \u00e0 avoir un petit texte  descriptif qui servira de lien pour jouer la playlist, dans la fen\u00eatre  du lecteur. Laissez vide un champ texte et la playlsit concern\u00e9e ne sera  pas enregistr\u00e9e en base de donn\u00e9es<br \/>\n&#8211; envoi du formulaire et enregistrement en base de donn\u00e9es : ensuite  vous pouvez rajouter une miniature par upload ou lien : vous pouvez  m\u00eame directement l&#8217;envoyer par ftp avec pour nom &#8216;[nom du dossier].jpg&#8217;<\/p>\n<p>pour g\u00e9rer une playlist :<br \/>\n&#8211; cliquez sur la 2\u00b0 ic\u00f4ne \u00e0 cot\u00e9 de la playlist<br \/>\n&#8211; Ensuite suivez les \u00e9tapes : n&#8217;oubliez pas la derni\u00e8re !<\/p>\n<\/div>\n<div id=\"q5\">\n<h3><strong>Comment puis-je ajouter des mp3 distants ou pr\u00e9sent dans d&#8217;autres dossiers ?<\/strong><\/h3>\n<p>Pour  cel\u00e0 rendez-vous dans la playlist de votre choix et, \u00e0 l&#8217;\u00e9tape 2,  ajoutez votre fichier. Attention : m\u00eame si le mp3 est sur le m\u00eame  serveur que ce plugin, il faut une url compl\u00e8te avec http:\/\/<\/p>\n<\/div>\n<div id=\"q6\">\n<h3><strong>Peut-on ajouter des podcats ou une playlist distante ?<\/strong><\/h3>\n<p>Oui  : depuis la 1.3 un block pour podcast et playlist distante a \u00e9t\u00e9  ajout\u00e9. Attention : la playlist doit \u00eatre au format Atom, Xspf (utilis\u00e9  par le plugin), ou RSS. (Les podcast sont tous des RSS)<\/p>\n<\/div>\n<h1>Un probl\u00e8me ? Des questions ?<\/h1>\n<p><strong><a href=\"http:\/\/fr.piwigo.org\/forum\/index.php\" target=\"_blank\">Utilisez les forums de Piwigo<\/a> : si vous me contactez par mail, je vous demanderai de poster sur les  forums car votre message peut int\u00e9resser d&#8217;autres personnes. Pas de  support dans les commentaires non plus !!<\/strong><\/p>\n<p>[\/fr]<br \/>\n[en]<\/p>\n<h1>Summary<\/h1>\n<p>Opens in a reader pop_up with playlists &#8211; listen to mp3 music during your visit! Plugin manages mp3 on playlists, distant playlists and podcasts!<br \/>\n<div id='gallery-2' class='gallery galleryid-1323 gallery-columns-2 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-150x150.png 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-36x36.png 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-58-47-115x115.png 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-150x150.png 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-36x36.png 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-58-115x115.png 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-150x150.jpg 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-36x36.jpg 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-37-05-115x115.jpg 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-150x150.jpg 150w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-36x36.jpg 36w, http:\/\/www.planete-flop.fr\/blog\/wp-content\/uploads\/2011\/11\/28-11-2011-20-36-00-115x115.jpg 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n<\/p>\n<div id=\"q1\">\n<h1><strong>Where put mp3 ?<\/strong><\/h1>\n<p>Mp3  must be put into Music folder of the plugin like this &#8220;[PWG  folder]\/plugins\/music_player\/music\/[new playlist]\/&#8221;. You should make  your playlists order by artist (music\/moby\/go.pm3), or put artist&#8217;s mane  directly into file name (music\/electro\/moby-go.pm3)<\/p>\n<\/div>\n<div id=\"q2\">\n<h3><strong>I have added mp3 but i didn&#8217;t find them in the playlist !<\/strong><\/h3>\n<p>You  do not update your playlist : So click on 2nd icon (&#8216;Manage music&#8217;)  near the playlist, then in final step, do &#8216;Submit modifications&#8217;<\/p>\n<\/div>\n<div id=\"q3\">\n<h3><strong>What is about &#8216;Show thumnbail in playlist&#8217; ?<\/strong><\/h3>\n<p>It is about thumbnail that you can insert (3rd icon (&#8216;Manage thumbnail&#8217;) near the playlist<\/p>\n<\/div>\n<div id=\"q4\">\n<h1><strong>How does this plugin work ?<\/strong><\/h1>\n<p>This plugin allow to create and manage some playlists, personnalise music player and his pop-up.<br \/>\nTo create a playlist :<br \/>\n&#8211; First of all, You need a folder \/music in plugin folder. IMPORTANT  !! (Free users you are not concerne by this following notice) \/music  folder must have all autorisations en write\/read (chmod 777 or  rwxrwxrwx).<br \/>\n&#8211; Then, you create another folder in \/music which will contain mp3  and playlist with .xml extension. Be careful : folder&#8217;s name is  important : SO DO NOT USE SPECIALS CHARACTERES for the name of the  folder<br \/>\n&#8211; Then click on &#8216;Synchronise with \/music&#8217; : folders in \/music have  been listed with mp3 files. Playlists with xml extension have been  created with the same name of the folder.<br \/>\n&#8211; reception of the form: it is used to have a small descriptive text  which will be used as link to play the playlist, in the window of the  player. Leave empty a field text and the playlsit concerned will not be  recorded in data base<br \/>\n&#8211; sending of the form and recording in data base: then you can add a  miniature by upload or link: you can even directly send it by ftp with  for name &#8216;[name of the file] .jpg&#8217;?<\/p>\n<p>To manage playlist :<br \/>\n&#8211; Click on 2nd icon near the playlist<br \/>\n&#8211; Then follow these steps : Dont forget the last one !<\/p>\n<\/div>\n<div id=\"q5\">\n<h3><strong>How can i added distant mp3 or localised in others folders ?<\/strong><\/h3>\n<p>Yes  : For this go into the playlist of your choice and, on step two, add  your file. Be careful : Even if mp3 is on the same server that this  plugin, you need to write complete ardress with http:\/\/<\/p>\n<\/div>\n<div id=\"q6\">\n<h3><strong>It&#8217;s possible to add podcats ?<\/strong><\/h3>\n<p>Yes  : Since 1.3 a block for podcast and distant playlist have been added.  Be careful  : playlist must be in Atom, Xspf (use by the plugin), or RSS  format. (podcast are always RSS)<\/p>\n<\/div>\n<h1><strong>I can&#8217;t find answers here \/ I have some problemes<\/strong><\/h1>\n<p><strong><a href=\"http:\/\/piwigo.org\/forum\/\" target=\"_blank\">Please use the Piwigo forum<\/a> : my mail and the commentaries are not for support!<\/strong><\/p>\n<p><strong> <\/strong>[\/en]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[fr]Ouvre dans une pop_up le lecteur et ses playlists, permettant alors d&#8217;\u00e9couter de la musique en mp3 tout au long de la visite ! Le plugin g\u00e8re les mp3 en playlist, les playlist distantes en xml, et les podcast ! On peut aussi afficher une image par playlist, personnaliser le lecteur et la popup&#8230; Ou [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"pagetpl-piwigo.php","meta":{"_s2mail":"","footnotes":""},"class_list":["post-1323","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/pages\/1323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/comments?post=1323"}],"version-history":[{"count":0,"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/pages\/1323\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.planete-flop.fr\/blog\/wp-json\/wp\/v2\/media?parent=1323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}