|
|
@ -25,10 +25,12 @@
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/video.js@6.10.3/dist/video-js.min.css">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/video.js@6.10.3/dist/video-js.min.css">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/silvermine-videojs-quality-selector@1.1.2/dist/css/quality-selector.css">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/silvermine-videojs-quality-selector@1.1.2/dist/css/quality-selector.css">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/videojs-markers@1.0.1/dist/videojs.markers.min.css">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/videojs-markers@1.0.1/dist/videojs.markers.min.css">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/videojs-share@1.1.0/dist/videojs-share.css">
|
|
|
|
<script src="https://unpkg.com/video.js@6.10.3/dist/video.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/video.js@6.10.3/dist/video.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/videojs-hotkeys@0.2.21/videojs.hotkeys.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/videojs-hotkeys@0.2.21/videojs.hotkeys.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/silvermine-videojs-quality-selector@1.1.2/dist/js/silvermine-videojs-quality-selector.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/silvermine-videojs-quality-selector@1.1.2/dist/js/silvermine-videojs-quality-selector.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/videojs-markers@1.0.1/dist/videojs-markers.min.js"></script>
|
|
|
|
<script src="https://unpkg.com/videojs-markers@1.0.1/dist/videojs-markers.min.js"></script>
|
|
|
|
|
|
|
|
<script src="https://unpkg.com/videojs-share@1.1.0/dist/videojs-share.min.js"></script>
|
|
|
|
<title><%= video.title %> - Invidious</title>
|
|
|
|
<title><%= video.title %> - Invidious</title>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
@ -86,6 +88,15 @@ var options = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var shareOptions = {
|
|
|
|
|
|
|
|
socials: ["fb", "tw", "reddit", "mail"],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
url: "<%= host_url %>/<%= video.id %>?<%= host_params %>",
|
|
|
|
|
|
|
|
title: "<%= video.title %>",
|
|
|
|
|
|
|
|
description: "<%= description %>",
|
|
|
|
|
|
|
|
image: '<%= thumbnail %>'
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var player = videojs('player', options, function() {
|
|
|
|
var player = videojs('player', options, function() {
|
|
|
|
this.hotkeys({
|
|
|
|
this.hotkeys({
|
|
|
|
volumeStep: 0.1,
|
|
|
|
volumeStep: 0.1,
|
|
|
@ -127,6 +138,8 @@ var player = videojs('player', options, function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
player.share(shareOptions);
|
|
|
|
|
|
|
|
|
|
|
|
<% if preferences %>
|
|
|
|
<% if preferences %>
|
|
|
|
player.volume(<%= preferences.volume.to_f / 100 %>);
|
|
|
|
player.volume(<%= preferences.volume.to_f / 100 %>);
|
|
|
|
player.playbackRate(<%= preferences.speed %>);
|
|
|
|
player.playbackRate(<%= preferences.speed %>);
|
|
|
|