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'}); |
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
const config = { | |
token: '...' | |
}; | |
const video = document.getElementById("video"); | |
const upscaler = new vectorlyUpscaler(video, config); |
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
<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> | |
<link href="video-js.css" rel="stylesheet" /> | |
<script src="video.min.js"></script> | |
<script src="vectorly-videojs.js"></script> | |
</head> | |
<body> | |
<video id="my-video" width="1280" height="720" class="video-js" controls data-setup="{}" > | |
<source src="video.mp4" type="video/mp4" /> |
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> | |
<link href="https://vjs.zencdn.net/7.10.2/video-js.css" rel="stylesheet" /> | |
<script src="https://vjs.zencdn.net/7.10.2/video.min.js"></script> | |
<script src="https://cdn.vectorly.io/upscaler/latest/vectorly-videojs.js"></script> | |
</head> | |
<body> | |
<video id="my-video" class="video-js" controls width="1280" height="720" data-setup="{}" crossorigin="anonymous"> |
NewerOlder