Cloudflare Pages High-Speed HLS Video Stream 1080p 60fps
CORS enabled across all origins. Ready for any web player, video.js, Plyr, or iOS/Safari.
<!-- Include Hls.js in your website's <head> -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<!-- Video Element -->
<video id="my-video" controls playsinline style="width: 100%; max-width: 800px;"></video>
<!-- Initialize Stream -->
<script>
const video = document.getElementById('my-video');
const streamUrl = window.location.origin + '/stream.m3u8';
if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(streamUrl);
hls.attachMedia(video);
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
// Native HLS for Safari & iOS
video.src = streamUrl;
}
</script>