This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Hello world"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<script src="https://cdn.jwplayer.com/libraries/[your-jwplayer-version].js"></script> | |
</head> | |
<body> | |
<div id="myElement"></div> | |
<script> | |
jwplayer("myElement").setup({ | |
"playlist": [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head lang="en"> | |
<script src="shaka-player.ui.js"></script> | |
<link rel="stylesheet" href="controls.css"> | |
<script src="vectorly-shaka.js"></script> | |
</head> | |
<body> | |
<div id="container" data-shaka-player-container style="max-width:1280px;"> | |
<video data-shaka-player crossorigin="anonymous" id="video" ></video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enabled by default | |
const upscaler = new vectorlyUpscaler(video, config); | |
upscaler.disable(); | |
upscaler.enable(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const upscaler = new vectorlyUpscaler(video, config); | |
upscaler.on('load', function () { | |
console.log("Upscaler initialized"); | |
}); | |
upscaler.on('start', function () { | |
console.log("Starting upscaling"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.vectorly.glnnrender.GlPlayerView; | |
import io.vectorly.glnnrender.networks.NetworkTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private GlPlayerView ePlayerView; | |
private void setupUpscalerView() { | |
String api_key = "..."; | |
ePlayerView = new GlPlayerView(this, api_key); | |
ePlayerView.setSimpleExoPlayer(player); | |
ePlayerView.setNetwork(NetworkTypes.DEFAULT, getApplicationContext()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const upscaler = new vectorlyUpscaler(video, {width: 1280, height: 720, network: 'residual_3k_3x', version: '2.1'}); |
OlderNewer