Merge branch 'transcoding_progress'

This probably broke stuff
This commit is contained in:
Boris Bobrov
2018-07-12 18:49:35 +02:00
24 changed files with 576 additions and 80 deletions

View File

@@ -1 +1 @@
../../../extlib/video.js/dist/video-js
../../../extlib/video.js/dist/

View File

@@ -0,0 +1 @@
../../../extlib/videojs-resolution-switcher/lib/

View File

@@ -0,0 +1,27 @@
var glplayer;
$(document).ready(function()
{
// fire up the plugin
glplayer = videojs('video_1', {
controls: true,
muted: true,
height: 400,
width: 700,
plugins: {
videoJsResolutionSwitcher: {
ui: true,
default: 'low', // Default resolution [{Number}, 'low', 'high'],
dynamicLabel: true // Display dynamic labels or gear symbol
}
}
}, function(){
var player = this;
window.player = player
player.on('resolutionchange', function(){
console.info('Source changed to %s', player.src());
console.log(player.currentTime());
})
})
});