|
|
@ -63,20 +63,23 @@ video, #my_video, .video-js, .vjs-default-skin
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|
preload: 'auto',
|
|
|
|
preload: 'auto',
|
|
|
|
playbackRates: [0.5, 1, 1.5, 2],
|
|
|
|
playbackRates: [0.5, 1, 1.5, 2],
|
|
|
|
controlBar: {
|
|
|
|
controlBar: {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
'playToggle',
|
|
|
|
'playToggle',
|
|
|
|
'volumePanel',
|
|
|
|
'volumePanel',
|
|
|
|
'progressControl',
|
|
|
|
'currentTimeDisplay',
|
|
|
|
'remainingTimeDisplay',
|
|
|
|
'timeDivider',
|
|
|
|
'captionsButton',
|
|
|
|
'durationDisplay',
|
|
|
|
'qualitySelector',
|
|
|
|
'progressControl',
|
|
|
|
'playbackRateMenuButton',
|
|
|
|
'remainingTimeDisplay',
|
|
|
|
'fullscreenToggle',
|
|
|
|
'captionsButton',
|
|
|
|
],
|
|
|
|
'qualitySelector',
|
|
|
|
},
|
|
|
|
'playbackRateMenuButton',
|
|
|
|
|
|
|
|
'fullscreenToggle'
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var shareOptions = {
|
|
|
|
var shareOptions = {
|
|
|
@ -87,7 +90,7 @@ var shareOptions = {
|
|
|
|
description: "<%= description %>",
|
|
|
|
description: "<%= description %>",
|
|
|
|
image: '<%= thumbnail %>',
|
|
|
|
image: '<%= thumbnail %>',
|
|
|
|
embedCode: `<iframe id='ivplayer' type='text/html' width='640' height='360'
|
|
|
|
embedCode: `<iframe id='ivplayer' type='text/html' width='640' height='360'
|
|
|
|
src='<%= host_url %>/embed/<%= video.id %>?<%= host_params %>' frameborder='0'></iframe>`
|
|
|
|
src='<%= host_url %>/embed/<%= video.id %>?<%= host_params %>' frameborder='0'></iframe>`
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var player = videojs('player', options, function() {
|
|
|
|
var player = videojs('player', options, function() {
|
|
|
|