{"id":96,"date":"2026-04-22T09:53:52","date_gmt":"2026-04-22T09:53:52","guid":{"rendered":"https:\/\/bhadko.co.in\/?page_id=96"},"modified":"2026-11-19T08:04:45","modified_gmt":"2026-11-19T08:04:45","slug":"live-tv","status":"publish","type":"page","link":"https:\/\/bhadko.co.in\/?page_id=96","title":{"rendered":""},"content":{"rendered":"<p><code>    <div class=\"bhadko-hls-wrap\" id=\"bhadko-hls-1\" style=\"--bhadko-aspect:16\/9\">\n        <video class=\"bhadko-hls-video\" controls playsinline preload=\"none\"  ><\/video>\n        <div class=\"bhadko-hls-status\" role=\"status\" aria-live=\"polite\">Loading live stream\u2026<\/div>\n    <\/div>\n    <style>\n      #bhadko-hls-1{width:100%;max-width:100%;aspect-ratio:var(--bhadko-aspect);background:#000;position:relative;overflow:hidden;border-radius:8px}\n      #bhadko-hls-1 .bhadko-hls-video{display:block;width:100%;height:100%;object-fit:contain;background:#000}\n      #bhadko-hls-1 .bhadko-hls-status{position:absolute;left:12px;bottom:52px;color:#fff;background:rgba(0,0,0,.65);padding:5px 9px;border-radius:4px;font:13px\/1.4 Arial,sans-serif;pointer-events:none}\n      #bhadko-hls-1.bhadko-hls-ready .bhadko-hls-status{display:none}\n    <\/style>\n    <script>\n    (function(){\n      var root=document.getElementById(\"bhadko-hls-1\");\n      if(!root || root.dataset.initialized==='1') return;\n      root.dataset.initialized='1';\n      var video=root.querySelector('video');\n      var status=root.querySelector('.bhadko-hls-status');\n      var cfg={\"url\":\"https:\\\/\\\/amigofx.com:1936\\\/bhadko\\\/bhadko\\\/playlist.m3u8\",\"autoplay\":false,\"muted\":false};\n      function fail(message){status.textContent=message;}\n      function ready(){root.classList.add('bhadko-hls-ready');}\n      video.addEventListener('playing',ready);\n      video.addEventListener('error',function(){fail('Unable to play stream. Please check the stream URL or server.');});\n      if(window.Hls && Hls.isSupported()){\n        var hls=new Hls({liveSyncDurationCount:3});\n        hls.loadSource(cfg.url);\n        hls.attachMedia(video);\n        hls.on(Hls.Events.MANIFEST_PARSED,function(){ready(); if(cfg.autoplay){video.play().catch(function(){});}});\n        hls.on(Hls.Events.ERROR,function(event,data){\n          if(data && data.fatal){\n            if(data.type===Hls.ErrorTypes.NETWORK_ERROR){fail('Stream connection failed. Retrying\u2026');hls.startLoad();}\n            else if(data.type===Hls.ErrorTypes.MEDIA_ERROR){fail('Recovering playback\u2026');hls.recoverMediaError();}\n            else{fail('Live stream is currently unavailable.');hls.destroy();}\n          }\n        });\n      } else if(video.canPlayType('application\/vnd.apple.mpegurl')){\n        video.src=cfg.url;\n        video.addEventListener('loadedmetadata',function(){ready();if(cfg.autoplay){video.play().catch(function(){});}});\n      } else {\n        fail('Your browser does not support HLS playback.');\n      }\n    })();\n    <\/script>\n    <\/code><\/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":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","_ess_expiration_date":"","_ess_expiration_action":"","footnotes":""},"class_list":["post-96","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bhadko.co.in\/index.php?rest_route=\/wp\/v2\/pages\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bhadko.co.in\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bhadko.co.in\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bhadko.co.in\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bhadko.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":19,"href":"https:\/\/bhadko.co.in\/index.php?rest_route=\/wp\/v2\/pages\/96\/revisions"}],"predecessor-version":[{"id":3668,"href":"https:\/\/bhadko.co.in\/index.php?rest_route=\/wp\/v2\/pages\/96\/revisions\/3668"}],"wp:attachment":[{"href":"https:\/\/bhadko.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}