CDN setup
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/sh20raj-backup/Sopplayer@v2.0.0/dist/sopplayer.min.css">
<script src="https://cdn.jsdelivr.net/gh/sh20raj-backup/Sopplayer@v2.0.0/dist/sopplayer.min.js"></script>Video markup
<video id="player" poster="poster.jpg" preload="metadata" playsinline>
<source src="video.mp4" type="video/mp4">
<track kind="subtitles" label="English" srclang="en"
src="subtitles-en.vtt" default>
</video>Initialize the player
const player = new Sopplayer('#player', {
theme: 'duolingo',
aspectRatio: '16:9',
keyboard: true
});Package manager
npm install sopplayerImport Sopplayer and sopplayer/css in a modern bundler.