mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Merge pull request #1465 from saltycrys/storyboards
Update videojs-vtt-thumbnails to latest upstream version and improve storyboard display
This commit is contained in:
commit
13073411cc
4 changed files with 8 additions and 3 deletions
3
assets/css/videojs-vtt-thumbnails-fix.css
Normal file
3
assets/css/videojs-vtt-thumbnails-fix.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.video-js .vjs-vtt-thumbnail-display {
|
||||||
|
max-width: 158px;
|
||||||
|
}
|
|
@ -149,7 +149,8 @@ if (!video_data.params.listen && video_data.params.quality === 'dash') {
|
||||||
}
|
}
|
||||||
|
|
||||||
player.vttThumbnails({
|
player.vttThumbnails({
|
||||||
src: location.origin + '/api/v1/storyboards/' + video_data.id + '?height=90'
|
src: location.origin + '/api/v1/storyboards/' + video_data.id + '?height=90',
|
||||||
|
showTimestamp: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// Enable annotations
|
// Enable annotations
|
||||||
|
|
4
assets/js/videojs-vtt-thumbnails.min.js
vendored
4
assets/js/videojs-vtt-thumbnails.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,7 @@
|
||||||
<link rel="stylesheet" href="/css/videojs.markers.min.css?v=<%= ASSET_COMMIT %>">
|
<link rel="stylesheet" href="/css/videojs.markers.min.css?v=<%= ASSET_COMMIT %>">
|
||||||
<link rel="stylesheet" href="/css/videojs-share.css?v=<%= ASSET_COMMIT %>">
|
<link rel="stylesheet" href="/css/videojs-share.css?v=<%= ASSET_COMMIT %>">
|
||||||
<link rel="stylesheet" href="/css/videojs-vtt-thumbnails.css?v=<%= ASSET_COMMIT %>">
|
<link rel="stylesheet" href="/css/videojs-vtt-thumbnails.css?v=<%= ASSET_COMMIT %>">
|
||||||
|
<link rel="stylesheet" href="/css/videojs-vtt-thumbnails-fix.css?v=<%= ASSET_COMMIT %>">
|
||||||
<script src="/js/global.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/global.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/video.min.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/video.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
<script src="/js/videojs-contrib-quality-levels.min.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/videojs-contrib-quality-levels.min.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
|
|
Loading…
Reference in a new issue