Get started with videojs-contrib-hls CDN
Apache-2.0 licensed
Video.js Contrib HLS is a plugin for the Video.js library that enables HLS support.
Tags:- videojs
- videojs-plugin
- hls
- streaming
Stable version
Copied!
How to start using videojs-contrib-hls CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with videojs-contrib-hls CDN - cdnhub.io</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/video-js.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/video.min.js"></script>
<script src="https://cdn.cdnhub.io/videojs-contrib-hls/5.15.0/videojs-contrib-hls.min.js"></script>
</head>
<body>
<video id="my-video" class="video-js" controls preload="auto" width="640" height="360" data-setup='{"techOrder": ["hls"]}'>
<source src="https://example.com/path/to/your/hls/manifest.m3u8" type="application/x-mpegURL">
</video>
<script>
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
const player = videojs('my-video');
});
} else {
const player = videojs('my-video');
}
</script>
</body>
</html>
Copied!
Copied!
All versions
1.0.1-0
1.1.0
1.2.0
1.2.1
1.2.2
1.3.0
1.3.1
1.3.10
1.3.11
1.3.12
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.3.8
1.3.9
1.3.9-0
2.0.0
2.0.1
2.1.0
2.1.0-0
2.1.1
2.2.0
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6-0
3.0.6-1
3.1.0
3.2.0
3.3.0
3.4.0
3.5.0
3.5.1
3.5.2
3.5.3
3.6.0
3.6.1
3.6.10
3.6.12
3.6.13
3.6.14
3.6.14-experimental
3.6.2
3.6.3
3.6.4
3.6.5
3.6.6
3.6.7
3.6.8
3.6.9
3.7.0-beta
3.7.0-beta2
3.7.0-beta3
3.7.0-beta4
4.0.0
4.0.1
4.0.2
4.0.3
4.1.0
4.1.1
5.0.0
5.1.0
5.1.1
5.10.0
5.10.1
5.11.0
5.11.1
5.12.0
5.12.1
5.12.2
5.12.3-rc-1
5.13.0
5.14.0
5.14.1
*** 5.15.0
5.2.0
5.2.1
5.3.0
5.3.1
5.3.2
5.3.3
5.4.0
5.4.1
5.5.0
5.5.1
5.5.2
5.5.3
5.6.0
5.7.0
5.8.0
5.8.1
5.8.2
5.8.3
5.9.0