Javascript Popup sample on page load, you can set timer also
// alert('update')
if (confirm("Popup Shown here") == true) {
window.open("https://example.com/", '_blank');
}
Javascript Popup sample on page load, you can set timer also
// alert('update')
if (confirm("Popup Shown here") == true) {
window.open("https://example.com/", '_blank');
}
This is because mono.m3u8 is not a video file except it contains a link to different files (playlist/audio/video). You can learn more about m3u8 here. Want to know more about valid video extensions that are accepted in HTML. They are basically only 3 of them: MP4
, WebM
, and OGG
.
Even m3u8
is not supported directly by HTML. You can play it using some external libraries that are built specifically for playing these type of files.
In my case it is HLS.js.
You can also reffer to this question as I think this could also help.
<html>
<body>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script> <video id="video" controls>
Your browser does not support the video tag.
</video>
<script> if (Hls.isSupported()) {
var video = document.getElementById('video');
var hls = new His();
hls.loadSource('https://webudi.openhd.lol/ddy1/premium32/tracks-v1a1/mono.m3u8?http-referer=https://streamservicehd.click/');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, function () {
video.play();
});
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://webudi.openhd.lol/ddy1/premium32/tracks-v1a1/mono.m3u8?http-referer=https://streamservicehd.click/';
video.addEventListener('canplay', function () {
video.play();
});
}
</script>
</body>
</html>
I can not make sure it worked or not as the file you provided is not working for me in any case.