Get started with mediaelement CDN
MIT licensed
MediaElement.js: HTML5 video player solution for devs - full-screen, multiple formats, JS integration.
Tags:- video
- player
- html5
Stable version
Copied!
How to start using mediaelement CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with mediaelement CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/7.0.3/mediaelementplayer.min.css">
<script src="https://cdn.cdnhub.io/mediaelement/7.0.3/mediaelement.min.js"></script>
</head>
<body>
<video id="videoElement" width="320" height="240" controls>
<source src="path/to/your/video.mp4" type="video/mp4">
<source src="path/to/your/video.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
<script>
document.addEventListener('DOMContentLoaded', function() {
var video = document.getElementById('videoElement');
if (!('mediaElement' in video)) {
console.log('MediaElement.js is not supported by your browser.');
return;
}
video.addEventListener('canplay', function() {
var player = new MEJS.Player(video);
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
1.0.4
1.0.5
1.0.6
1.0.7
1.1
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
2.1.8
2.1.9
2.10.0
2.10.1
2.10.2
2.10.3
2.11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