if(Hls.isSupported()) { var video = document.getElementById('video'); var hls = new Hls(); hls.loadSource('https://video638.myfreecams.com/NxServer/mfc_114520863.f4v_aac/chunklist.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function() { video.play(); }); } // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled. // When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property. // This is using the built-in support of the plain video element, without using hls.js. else if (video.canPlayType('application/vnd.apple.mpegurl')) { video.src = 'https://video638.myfreecams.com/NxServer/mfc_114520863.f4v_aac/chunklist.m3u8'; video.addEventListener('canplay',function() { video.play(); }); }
https://video638.myfreecams.com/NxServer/mfc_114520863.f4v_aac/chunklist.m3u8
Change this !
if(Hls.isSupported()) {
var video = document.getElementById('video');
var hls = new Hls();
hls.loadSource('https://video638.myfreecams.com/NxServer/mfc_114520863.f4v_aac/chunklist.m3u8');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
video.play();
});
}
// hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled.
// When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property.
// This is using the built-in support of the plain video element, without using hls.js.
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://video638.myfreecams.com/NxServer/mfc_114520863.f4v_aac/chunklist.m3u8';
video.addEventListener('canplay',function() {
video.play();
});
}