Skip to content

Instantly share code, notes, and snippets.

@sb2702
Last active February 25, 2021 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sb2702/550cdfe8c04ee81c5166ee688209eaab to your computer and use it in GitHub Desktop.
Save sb2702/550cdfe8c04ee81c5166ee688209eaab to your computer and use it in GitHub Desktop.
<head>
<script src="https://cdn.jwplayer.com/libraries/[your-jwplayer-version].js"></script>
</head>
<body>
<div id="myElement"></div>
<script>
jwplayer("myElement").setup({
"playlist": [{
"file": "myvideo.mp4"
}],
plugins: {
'./vectorly-jwplayer.js': {
height: 720,
width: 1280
}
}
}).on('ready', function () {
const upscaler = jwplayer().getPlugin("vectorly-jwplayer.js");
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment