{"id":54,"date":"2024-10-18T21:27:26","date_gmt":"2024-10-18T21:27:26","guid":{"rendered":"https:\/\/lpam.be\/?page_id=54"},"modified":"2024-10-18T21:57:53","modified_gmt":"2024-10-18T21:57:53","slug":"stream-no-style","status":"publish","type":"page","link":"https:\/\/lpam.be\/index.php\/stream-no-style\/","title":{"rendered":"Stream no style"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Minimal HLS Stream Test<\/title>\n    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/hls.js@latest\"><\/script>\n<\/head>\n<body>\n    <video id=\"video\" controls width=\"640\" height=\"360\" style=\"background: black;\"><\/video>\n    <script>\n        const video = document.getElementById('video');\n        const videoSrc = 'https:\/\/video.lpam.be\/hls\/stream.m3u8';\n\n        if (Hls.isSupported()) {\n            const hls = new Hls();\n            hls.loadSource(videoSrc);\n            hls.attachMedia(video);\n            hls.on(Hls.Events.MANIFEST_PARSED, function () {\n                video.play();\n            });\n        } else if (video.canPlayType('application\/vnd.apple.mpegurl')) {\n            video.src = videoSrc;\n            video.addEventListener('loadedmetadata', function () {\n                video.play();\n            });\n        } else {\n            console.error('This browser does not support HLS.');\n        }\n    <\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>Minimal HLS Stream Test<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-54","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/pages\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":3,"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/pages\/54\/revisions"}],"predecessor-version":[{"id":58,"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/pages\/54\/revisions\/58"}],"wp:attachment":[{"href":"https:\/\/lpam.be\/index.php\/wp-json\/wp\/v2\/media?parent=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}