Skip to content

Instantly share code, notes, and snippets.

View sb2702's full-sized avatar

Sam Bhattacharyya sb2702

View GitHub Profile
@sb2702
sb2702 / models.js
Created February 11, 2021 21:58
Importing new models
$.getJSON('screencasts.json', function(json) {
videojs.registerPlugin('vectorlyPlugin', vectorly.videoJSPlugin);
const player = videojs('my-video');
player.vectorlyPlugin({width: 1280, height: 720, model: json}); // Upscale to 720p (from 240p)
});
@sb2702
sb2702 / index.html
Last active March 4, 2021 18:38
Basic Upscaling Example
<head>
<script src="video.js"></script>
<script src="vectorly-videojs.js"> </script>
</head>
<body>
<video id="my-video" class="video-js" data-setup="{}" src="video.mp4" />
<script>
videojs.registerPlugin('vectorlyPlugin', vectorlyUpscaler.videoJSPlugin);
@sb2702
sb2702 / test.js
Created February 11, 2021 20:06
First Test
console.log("Hello world");