{"id":112,"date":"2026-02-16T15:48:11","date_gmt":"2026-02-16T14:48:11","guid":{"rendered":"https:\/\/playlistradio.fr\/?page_id=112"},"modified":"2026-02-16T15:48:11","modified_gmt":"2026-02-16T14:48:11","slug":"ecoutez-playlist-radio","status":"publish","type":"page","link":"https:\/\/playlistradio.fr\/?page_id=112","title":{"rendered":"\u00c9coutez PLAYLIST RADIO"},"content":{"rendered":"<p><script>\nfunction fetchCurrentTrack() {\n    fetch('\/titre\/title_winmedia.xml')\n        .then(r => r.ok ? r.text() : Promise.reject('Probl\u00e8me r\u00e9seau'))\n        .then(xmlText => {\n            const parser = new DOMParser();\n            const xmlDoc = parser.parseFromString(xmlText, 'text\/xml');\n            const current = xmlDoc.getElementsByTagName(\"current_song\")[0];\n            const startime = current.getElementsByTagName(\"Startime\")[0].textContent;\n            const artist = current.getElementsByTagName(\"artist\")[0].textContent;\n            const title = current.getElementsByTagName(\"title\")[0].textContent;\n            const cover_url = current.getElementsByTagName(\"cover_url\")[0].textContent;<\/p>\n<p>            const nPartistEl = document.querySelector(\"#NPartist\");\n            const npTitleEl = document.querySelector(\"#NPtitle\");\n            const npCoverEl = document.querySelector(\"#NPcover\");\n            const npHourEl = document.querySelector(\"#NPplayhour\");<\/p>\n<p>            if (!nPartistEl || !npTitleEl || !npCoverEl || !npHourEl) return;<\/p>\n<p>            if (nPartistEl.textContent !== artist || npTitleEl.textContent !== title) {\n                let startimeHour = startime.split(' ')[1] || '';\n                let startimeHourOK = startimeHour.substr(0,5);<\/p>\n<p>                let oldArtist = nPartistEl.textContent;\n                let oldTitle = npTitleEl.textContent;\n                let oldCover = npCoverEl.getAttribute(\"src\");\n                let oldHour = npHourEl.textContent.split(\"\u00c0\")[1] || '';<\/p>\n<p>                nPartistEl.textContent = artist;\n                npTitleEl.textContent = title;\n                npHourEl.textContent = \"\u00c0 \" + startimeHourOK;<\/p>\n<p>                if (cover_url && cover_url.includes(\"http\")) npCoverEl.setAttribute(\"src\", cover_url);\n                else npCoverEl.setAttribute(\"src\", \"\/titre\/pochette.png\");<\/p>\n<p>                \/\/ D\u00e9placer l\u2019ancienne chanson dans l\u2019historique\n                const pastTrackEl = document.querySelector(\".pastTrack\");\n                if (pastTrackEl && oldArtist && oldTitle) {\n                    pastTrackEl.insertAdjacentHTML('beforebegin', `<\/p>\n<div class=\"pastTrack\">\n<p class=\"oldPlayHour\">${oldHour}<\/p>\n<p>                            <img decoding=\"async\" src=\"${oldCover}\" width=\"35\" height=\"35\"><\/p>\n<div class=\"titleInfo\">\n<p class=\"oldArtist\">${oldArtist}<\/p>\n<p class=\"tiret\">-<\/p>\n<p class=\"oldTitle\">${oldTitle}<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<p>                    `);<\/p>\n<p>                    \/\/ Limiter \u00e0 4 tracks dans l\u2019historique\n                    const tracks = document.querySelectorAll(\"#onlyTracks .pastTrack\");\n                    if (tracks.length > 4) tracks[tracks.length-1].remove();\n                }\n            }\n        })\n        .catch(err => console.error('Erreur fetch XML', err));\n}<\/p>\n<p>\/\/ Initialisation\nif (document.querySelector(\"#canFetch\") && document.querySelector(\"#canFetch\").value === \"fetchTracks\") {\n    fetchCurrentTrack();\n    setInterval(fetchCurrentTrack, 20000); \/\/ toutes les 20 sec\n}\n<\/script><br \/>\n<script>\nfunction fetchCurrentTrack() {\n    fetch('\/titre\/title_winmedia.xml')\n        .then(r => r.ok ? r.text() : Promise.reject('Probl\u00e8me r\u00e9seau'))\n        .then(xmlText => {\n            const parser = new DOMParser();\n            const xmlDoc = parser.parseFromString(xmlText, 'text\/xml');\n            const current = xmlDoc.getElementsByTagName(\"current_song\")[0];\n            const startime = current.getElementsByTagName(\"Startime\")[0].textContent;\n            const artist = current.getElementsByTagName(\"artist\")[0].textContent;\n            const title = current.getElementsByTagName(\"title\")[0].textContent;\n            const cover_url = current.getElementsByTagName(\"cover_url\")[0].textContent;<\/p>\n<p>            const nPartistEl = document.querySelector(\"#NPartist\");\n            const npTitleEl = document.querySelector(\"#NPtitle\");\n            const npCoverEl = document.querySelector(\"#NPcover\");\n            const npHourEl = document.querySelector(\"#NPplayhour\");<\/p>\n<p>            if (!nPartistEl || !npTitleEl || !npCoverEl || !npHourEl) return;<\/p>\n<p>            if (nPartistEl.textContent !== artist || npTitleEl.textContent !== title) {\n                let startimeHour = startime.split(' ')[1] || '';\n                let startimeHourOK = startimeHour.substr(0,5);<\/p>\n<p>                let oldArtist = nPartistEl.textContent;\n                let oldTitle = npTitleEl.textContent;\n                let oldCover = npCoverEl.getAttribute(\"src\");\n                let oldHour = npHourEl.textContent.split(\"\u00c0\")[1] || '';<\/p>\n<p>                nPartistEl.textContent = artist;\n                npTitleEl.textContent = title;\n                npHourEl.textContent = \"\u00c0 \" + startimeHourOK;<\/p>\n<p>                if (cover_url && cover_url.includes(\"http\")) npCoverEl.setAttribute(\"src\", cover_url);\n                else npCoverEl.setAttribute(\"src\", \"\/titre\/pochette.png\");<\/p>\n<p>                \/\/ D\u00e9placer l\u2019ancienne chanson dans l\u2019historique\n                const pastTrackEl = document.querySelector(\".pastTrack\");\n                if (pastTrackEl && oldArtist && oldTitle) {\n                    pastTrackEl.insertAdjacentHTML('beforebegin', `<\/p>\n<div class=\"pastTrack\">\n<p class=\"oldPlayHour\">${oldHour}<\/p>\n<p>                            <img decoding=\"async\" src=\"${oldCover}\" width=\"35\" height=\"35\"><\/p>\n<div class=\"titleInfo\">\n<p class=\"oldArtist\">${oldArtist}<\/p>\n<p class=\"tiret\">-<\/p>\n<p class=\"oldTitle\">${oldTitle}<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<p>                    `);<\/p>\n<p>                    \/\/ Limiter \u00e0 4 tracks dans l\u2019historique\n                    const tracks = document.querySelectorAll(\"#onlyTracks .pastTrack\");\n                    if (tracks.length > 4) tracks[tracks.length-1].remove();\n                }\n            }\n        })\n        .catch(err => console.error('Erreur fetch XML', err));\n}<\/p>\n<p>\/\/ Initialisation\nif (document.querySelector(\"#canFetch\") && document.querySelector(\"#canFetch\").value === \"fetchTracks\") {\n    fetchCurrentTrack();\n    setInterval(fetchCurrentTrack, 20000); \/\/ toutes les 20 sec\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-112","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u00c9coutez PLAYLIST RADIO - Playlist Radio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/playlistradio.fr\/?page_id=112\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00c9coutez PLAYLIST RADIO - Playlist Radio\" \/>\n<meta property=\"og:url\" content=\"https:\/\/playlistradio.fr\/?page_id=112\" \/>\n<meta property=\"og:site_name\" content=\"Playlist Radio\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/playlistradio.fr\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/playlistradio.fr\/?page_id=112\",\"url\":\"https:\/\/playlistradio.fr\/?page_id=112\",\"name\":\"\u00c9coutez PLAYLIST RADIO - Playlist Radio\",\"isPartOf\":{\"@id\":\"https:\/\/playlistradio.fr\/#website\"},\"datePublished\":\"2026-02-16T14:48:11+00:00\",\"dateModified\":\"2026-02-16T14:48:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/playlistradio.fr\/?page_id=112#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/playlistradio.fr\/?page_id=112\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/playlistradio.fr\/?page_id=112#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/playlistradio.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u00c9coutez PLAYLIST RADIO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/playlistradio.fr\/#website\",\"url\":\"https:\/\/playlistradio.fr\/\",\"name\":\"Playlist Radio\",\"description\":\"Une playlist, des \u00e9motions\",\"publisher\":{\"@id\":\"https:\/\/playlistradio.fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/playlistradio.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/playlistradio.fr\/#organization\",\"name\":\"Playlist Radio\",\"url\":\"https:\/\/playlistradio.fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/playlistradio.fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/playlistradio.fr\/wp-content\/uploads\/2024\/01\/cropped-LOGOS-RADIO-baseline_Plan-de-travail-1-copie.png\",\"contentUrl\":\"https:\/\/playlistradio.fr\/wp-content\/uploads\/2024\/01\/cropped-LOGOS-RADIO-baseline_Plan-de-travail-1-copie.png\",\"width\":250,\"height\":99,\"caption\":\"Playlist Radio\"},\"image\":{\"@id\":\"https:\/\/playlistradio.fr\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/playlistradio.fr\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00c9coutez PLAYLIST RADIO - Playlist Radio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/playlistradio.fr\/?page_id=112","og_locale":"fr_FR","og_type":"article","og_title":"\u00c9coutez PLAYLIST RADIO - Playlist Radio","og_url":"https:\/\/playlistradio.fr\/?page_id=112","og_site_name":"Playlist Radio","article_publisher":"https:\/\/www.facebook.com\/playlistradio.fr\/","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/playlistradio.fr\/?page_id=112","url":"https:\/\/playlistradio.fr\/?page_id=112","name":"\u00c9coutez PLAYLIST RADIO - Playlist Radio","isPartOf":{"@id":"https:\/\/playlistradio.fr\/#website"},"datePublished":"2026-02-16T14:48:11+00:00","dateModified":"2026-02-16T14:48:11+00:00","breadcrumb":{"@id":"https:\/\/playlistradio.fr\/?page_id=112#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/playlistradio.fr\/?page_id=112"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/playlistradio.fr\/?page_id=112#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/playlistradio.fr\/"},{"@type":"ListItem","position":2,"name":"\u00c9coutez PLAYLIST RADIO"}]},{"@type":"WebSite","@id":"https:\/\/playlistradio.fr\/#website","url":"https:\/\/playlistradio.fr\/","name":"Playlist Radio","description":"Une playlist, des \u00e9motions","publisher":{"@id":"https:\/\/playlistradio.fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/playlistradio.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/playlistradio.fr\/#organization","name":"Playlist Radio","url":"https:\/\/playlistradio.fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/playlistradio.fr\/#\/schema\/logo\/image\/","url":"https:\/\/playlistradio.fr\/wp-content\/uploads\/2024\/01\/cropped-LOGOS-RADIO-baseline_Plan-de-travail-1-copie.png","contentUrl":"https:\/\/playlistradio.fr\/wp-content\/uploads\/2024\/01\/cropped-LOGOS-RADIO-baseline_Plan-de-travail-1-copie.png","width":250,"height":99,"caption":"Playlist Radio"},"image":{"@id":"https:\/\/playlistradio.fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/playlistradio.fr\/"]}]}},"_links":{"self":[{"href":"https:\/\/playlistradio.fr\/index.php?rest_route=\/wp\/v2\/pages\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/playlistradio.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/playlistradio.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/playlistradio.fr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/playlistradio.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":2,"href":"https:\/\/playlistradio.fr\/index.php?rest_route=\/wp\/v2\/pages\/112\/revisions"}],"predecessor-version":[{"id":769,"href":"https:\/\/playlistradio.fr\/index.php?rest_route=\/wp\/v2\/pages\/112\/revisions\/769"}],"wp:attachment":[{"href":"https:\/\/playlistradio.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}