Transmisja z XV sesji Rady Powiatu Hajnowskiego

#video {max-width:400px;margin-left:auto;margin-right:auto} // Tworzymy element script i ustawiamy jego atrybuty var script = document.createElement('script'); script.src = 'https://esesja.tv/js/hlsplayer.js'; script.onload = function () { var video = document.getElementById('video'); var videoSrc = 'https://esesja.tv/live/2214/playlist.m3u8'; if (Hls.isSupported()) { var hls = new Hls(); hls.loadSource(videoSrc); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED, function () { video.play(); }); } else if (video.canPlayType('application/vnd.apple.mpegurl')) { video.src = videoSrc; video.addEventListener('canplay', function () { video.play(); }); } }; document.head.appendChild(script);