Add videojs-persist plugin

This commit is contained in:
Féry Mathieu (Mathius) 2022-02-12 17:01:52 +01:00
parent 85ba04b715
commit c952754c8c
No known key found for this signature in database
GPG key ID: F9CCC80C18A59037
3 changed files with 8 additions and 0 deletions

View file

@ -677,3 +677,6 @@ if (window.location.pathname.startsWith("/embed/")) {
cb = player.getChild('ControlBar') cb = player.getChild('ControlBar')
cb.addChild(watch_on_invidious_button) cb.addChild(watch_on_invidious_button)
}; };
// Add usage of videojs-persist
player.persist();

View file

@ -11,6 +11,7 @@
<script src="/videojs/videojs-contrib-quality-levels/videojs-contrib-quality-levels.js?v=<%= ASSET_COMMIT %>"></script> <script src="/videojs/videojs-contrib-quality-levels/videojs-contrib-quality-levels.js?v=<%= ASSET_COMMIT %>"></script>
<script src="/videojs/videojs-http-source-selector/videojs-http-source-selector.js?v=<%= ASSET_COMMIT %>"></script> <script src="/videojs/videojs-http-source-selector/videojs-http-source-selector.js?v=<%= ASSET_COMMIT %>"></script>
<script src="/videojs/videojs-markers/videojs-markers.js?v=<%= ASSET_COMMIT %>"></script> <script src="/videojs/videojs-markers/videojs-markers.js?v=<%= ASSET_COMMIT %>"></script>
<script src="/videojs/videojs-persist/videojs-persist.js?v=<%= ASSET_COMMIT %>"></script>
<script src="/videojs/videojs-share/videojs-share.js?v=<%= ASSET_COMMIT %>"></script> <script src="/videojs/videojs-share/videojs-share.js?v=<%= ASSET_COMMIT %>"></script>
<script src="/videojs/videojs-vtt-thumbnails/videojs-vtt-thumbnails.js?v=<%= ASSET_COMMIT %>"></script> <script src="/videojs/videojs-vtt-thumbnails/videojs-vtt-thumbnails.js?v=<%= ASSET_COMMIT %>"></script>

View file

@ -25,6 +25,10 @@ videojs-overlay:
version: 2.1.4 version: 2.1.4
shasum: 5a103b25374dbb753eb87960d8360c2e8f39cc05 shasum: 5a103b25374dbb753eb87960d8360c2e8f39cc05
videojs-persist:
version: 0.1.2
shasum: 44da05aced1fbf15693a36b7cce3cc4a9960dabe
videojs-share: videojs-share:
version: 3.2.1 version: 3.2.1
shasum: 0a3024b981387b9d21c058c829760a72c14b8ceb shasum: 0a3024b981387b9d21c058c829760a72c14b8ceb