m3u8 dosyasını html player ile çalıştırma
https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1606169278/ei/Xt67X_rxMI_j7gPjmJ2ICA/ip/78.173.16.122/id/LvfaMv9nbJc.3/source/yt_live_broadcast/requiressl/yes/hfr/1/playlist_duration/30/manifest_duration/30/maudio/1/vprv/1/go/1/keepalive/yes/dover/11/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cplaylist_duration%2Cmanifest_duration%2Cmaudio%2Cvprv%2Cgo%2Citag%2Cplaylist_type/sig/AOq0QJ8wRQIhAJAkfyxrFkxhrJ_IgqZbV-mpjtVP5sJ6ml2cR7J2kavXAiA53fGhqvo6hEBG9HPmw5udKIWSzquQPRQlyd8L9wa0LQ%3D%3D/file/index.m3u8
yukarda belirttiğim m3u8 dosyasını html playerda nasıl açabilirim.
masaüstü vlc player ile linki açtığımda sorunsuz çalışmaktadır.
https://codepen.io/furkankinyas/pen/PpXKwO
soyle bır sey var googleye yazınca cıkıyor :)
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>24 TV CANLI YAYIN</title>
<link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
<script src="https://unpkg.com/video.js/dist/video.js"></script>
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
</head>
<body>
<video id="my_video_1" class="video-js vjs-fluid vjs-default-skin" controls preload="auto"
data-setup='{}'>
<source src="https://mn-l.mncdn.com/kanal24/smil:kanal24.smil/playlist.m3u8" type="application/x-mpegURL">
</video>
<script>
var player = videojs('my_video_1');
player.play();
</script>
</body>
</html>