sopplayer
Version:
Sopplayer is a sleek and feature-rich HTML5 video player that enhances the visual experience of videos on web pages. It offers compatibility across devices and browsers, supporting various video formats. With intuitive controls and customizable options, S
46 lines (38 loc) • 1.29 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mooviejs demo</title>
<meta type="og:image" content="og.png">
</head>
<body>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BMSVieira/moovie.js@main/css/moovie.css"/>
<video id="example" poster="https://raw.githubusercontent.com/BMSVieira/moovie.js/main/demo-template/images/poster.png" controls>
<source src="https://mooviejs.com/trailer/trailer.mp4" type="video/mp4">
<track kind="captions" label="Portuguese" srclang="pt" src="<<path-to-caption.vtt>>">
<track kind="captions" label="English" srclang="en" src="<<path-to-caption.vtt>>">
Your browser does not support the video tag.
</video>
<script src="js/moovie.js"></script>
<script>
video1 = new Moovie({
selector: "#example",
config: {
controls : {
playtime : true,
mute : true,
volume : true,
subtitles : true,
config : true,
fullscreen : true,
submenuCaptions : true,
submenuOffset : true,
submenuSpeed : true,
allowLocalSubtitles : true
}
}
});
</script>
</body>
</html>