j1-template 2024.3.22 → 2024.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/data/{galeries.html → gallery_app.html} +4 -4
- data/assets/theme/bla +0 -0
- data/assets/theme/j1/adapter/js/amplitude.js +144 -52
- data/assets/theme/j1/adapter/js/gallery.js +1 -1
- data/assets/theme/j1/adapter/js/themes.js +41 -69
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +19 -52
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +466 -396
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.css +984 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lg-transitions.min.css +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.css +1627 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/css/lightgallery-bundle.min.css +25 -0
- data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.css +1 -1
- data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/uno.min.css +1 -1
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.svg +54 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.ttf +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/fonts/lg.woff2 +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/images/loading.gif +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/loading.gif +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/video-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/vimeo-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/img/youtube-play.png +0 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.js +2782 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/lightgallery.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/LICENSE.md +44 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/README.md +37 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.js +890 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/parser/webvtt/parser.min.js +8 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/j1/lg-video.1.js +585 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.js +275 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-autoplay.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.js +230 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-comment.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.js +160 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-fullscreen.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.js +223 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-hash.min.js +27 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.js +157 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-medium-zoom.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.js +164 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-pager.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.js +299 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-rotate.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.js +244 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-share.min.js +27 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.js +509 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-thumbnail.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.js +909 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-video.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.js +207 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.js +999 -0
- data/assets/theme/j1/modules/lightGallery/!v2.7.2/js/plugins/lg-zoom.min.js +26 -0
- data/assets/theme/j1/modules/lightGallery/css/lg-transitions.css +3 -126
- data/assets/theme/j1/modules/lightGallery/css/lg-transitions.min.css +3 -10
- data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.css +70 -237
- data/assets/theme/j1/modules/lightGallery/css/lightgallery-bundle.min.css +4 -10
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/animation-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/customize-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/dynamic-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/facebook-icon.svg +10 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/googleplus-icon.svg +30 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/html5-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/linked-in.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/module-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button-hover.svg +94 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/play-button.svg +93 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/responsive-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/thumb-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/touch-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter-icon.svg +15 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/twitter.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/video1-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom-w.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/icons/zoom.png +0 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.css +276 -0
- data/assets/theme/j1/modules/lightGallery/css/theme/uno/uno.min.css +17 -0
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +163 -120
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.0.js +495 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-thumbnail.1.js +513 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.0.js +553 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +1 -1
- data/assets/theme/j1/modules/lightGallery/js/plugins/j1/lg-video.2.js +914 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-comment.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-hash.min.js +5 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-pager.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.js +179 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-relative-caption.min.js +32 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-share.min.js +6 -7
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +27 -20
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +77 -125
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.min.js +6 -6
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +4 -4
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +5 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.js +11 -5
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +5 -5
- data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +13 -12
- data/assets/theme/j1/modules/videoPlayer/tiktoc/README.md +1 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/README.md +151 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/font/VideoJS.svg +150 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.css +147 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/city.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.css +113 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/fantasy.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.css +166 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/forest.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.css +72 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/sea.min.css +5 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.css +311 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/themes/uno.min.css +19 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.css +1686 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/css/videojs.min.css +13 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.js +65226 -0
- data/assets/theme/j1/modules/videojs/!v8.12.0/js/video.min.js +55 -0
- data/assets/theme/j1/modules/videojs/assets/README.md +1 -0
- data/assets/theme/j1/modules/videojs/assets/icons/speedometer-medium.svg +35 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.ttf +0 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.woff +0 -0
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +157 -22
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +674 -316
- data/assets/theme/j1/modules/videojs/css/videojs.min.css +4 -3
- data/assets/theme/j1/modules/videojs/js/video.js +15893 -12288
- data/assets/theme/j1/modules/videojs/js/video.min.js +22 -23
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/!examples/index.html +31 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/README.md +69 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.css +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/css/aspect-ratio-panel.min.css +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.js +339 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/aspect-ratio-panel/js/aspect-ratio-panel.min.js +2 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.js +0 -5
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/!examples/index.html +29 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/README.md +90 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.js +120 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js +2 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html +37 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/LICENSE +19 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/README.md +61 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.js +94 -0
- data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/js/playbackrate-adjuster.min.js +20 -0
- data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/skipbuttons/README.md +25 -11
- data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css +7 -6
- data/assets/theme/j1/modules/videojs/plugins/controls/zoom/css/zoom.min.css +22 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js +1 -1
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.0.js +521 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.1.js +605 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.3.js +643 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.4.js +583 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.5.js +665 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.6.js +642 -0
- data/assets/theme/j1/modules/videojs/plugins/players/vm/!unused/vimeo.7.js +673 -0
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api → plugins/players/vm/api/js}/vimeo.min.js +1 -1
- data/assets/theme/j1/modules/videojs/{js/plugins/players/vm → plugins/players/vm/js}/vimeo.js +4 -5
- data/assets/theme/j1/modules/videojs/plugins/players/vm/js/vimeo.min.js +28 -0
- data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.0.js +395 -0
- data/assets/theme/j1/modules/videojs/plugins/players/wt/!unused/wistia.1.js +401 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/amplitude_playlists.yml +16 -1
- data/lib/starter_web/_data/modules/defaults/gallery.yml +3 -3
- data/lib/starter_web/_data/modules/gallery.yml +83 -87
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/resources.yml +16 -12
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +50 -30
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +37 -23
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/video/poster/vimeo/fall_2011.jpg +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/tools/tester/videojs_macro_tester.adoc +282 -0
- data/lib/starter_web/pages/public/tour/video_data.adoc +1 -0
- metadata +221 -106
- data/assets/data/swiper_app.2.html +0 -757
- data/assets/data/swiper_app.4.html +0 -769
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +0 -32
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +0 -31
- data/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.min.css +0 -21
- data/assets/theme/j1/modules/videojs/js/plugins/players/vm/vimeo.min.js +0 -16
- data/assets/theme/j1/modules/videojs/js/plugins/players/wt/api/src/WistiaPlayer.ts +0 -1617
- data/lib/starter_web/assets/video/poster/vimeo/stay_colorful.jpg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/animation-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/customize-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/dynamic-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/facebook-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/googleplus-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/html5-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/linked-in.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/module-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button-hover.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/play-button.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/responsive-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/thumb-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/touch-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter-icon.svg +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/twitter.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/video1-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom-w.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{css → !v2.7.2/css}/themes/uno/icons/zoom.png +0 -0
- /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.js +0 -0
- /data/assets/theme/j1/modules/lightGallery/{js → !v2.7.2/js}/plugins/j1/j1-video.min.js +0 -0
- /data/assets/theme/j1/modules/videoPlayer/dailymotion/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/tiktoc/{js/player.min.js → player.min.js} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/vimeo/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videoPlayer/wistia/js/{!readme → README.md} +0 -0
- /data/assets/theme/j1/modules/videojs/{css → !v8.12.0/css}/font/video-js-cdn.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/autocaption/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/autocaption → plugins/controls/autocaption/js}/autocaption.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys/examples → plugins/controls/hotkeys/!examples}/example.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/LICENSE.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/hotkeys/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/hotkeys → plugins/controls/hotkeys/js}/hotkeys.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.css +0 -0
- /data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/skipbuttons/css}/skipbuttons.min.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/skipbuttons → plugins/controls/skipbuttons/js}/skipbuttons.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/index.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom/examples → plugins/controls/zoom/!examples}/styles.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/LICENSE.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/controls/zoom/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/controls/zoom → plugins/controls/zoom/js}/zoom.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-controls.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-javascript.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/dailymotion-playlist.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/global-parameters.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/simple.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/examples → plugins/players/dm/!examples}/switch.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/doc → plugins/players/dm}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/api/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api/doc → plugins/players/dm/api}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm/api → plugins/players/dm/api/js}/dailymotion.sdk.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/dm/icon/scalable/dailymotion.svg +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/examples → plugins/players/vm/!examples}/player/index.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/doc → plugins/players/vm}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/vm/api/doc → plugins/players/vm/api}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/embed.player.uno.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/vm/api/css/player.css +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/doc → plugins/players/wt}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api/doc/Readme.txt → plugins/players/wt/api/README.md} +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt/api → plugins/players/wt/api/js}/wistia.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/wt → plugins/players/wt/js}/wistia.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/global-parameters.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/simple.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/switch.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-controls.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-javascript.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-list.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/examples → plugins/players/yt/!examples}/youtube-playlist.html +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/v3.0.0 → plugins/players/yt/!v3.0.0}/youtube.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins → plugins}/players/yt/LICENSE +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/doc → plugins/players/yt}/README.md +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt/api → plugins/players/yt/api/js}/youtube.min.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.js +0 -0
- /data/assets/theme/j1/modules/videojs/{js/plugins/players/yt → plugins/players/yt/js}/youtube.min.js +0 -0
@@ -0,0 +1,120 @@
|
|
1
|
+
/*! @name videojs-persist @version 0.2.0 @license MIT */
|
2
|
+
(function (global, factory) {
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js')) :
|
4
|
+
typeof define === 'function' && define.amd ? define(['video.js'], factory) :
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.videojsPersist = factory(global.videojs));
|
6
|
+
})(this, (function (videojs) { 'use strict';
|
7
|
+
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
9
|
+
|
10
|
+
var videojs__default = /*#__PURE__*/_interopDefaultLegacy(videojs);
|
11
|
+
|
12
|
+
var version = "0.2.0";
|
13
|
+
|
14
|
+
// Default options for the plugin.
|
15
|
+
const defaults = {
|
16
|
+
muted: true,
|
17
|
+
playbackRate: true,
|
18
|
+
volume: true,
|
19
|
+
restoreUnsupportedRate: false,
|
20
|
+
key: 'videojs-persist'
|
21
|
+
};
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Checks local storage is available
|
25
|
+
*
|
26
|
+
* @return {boolean} whether available
|
27
|
+
*/
|
28
|
+
const localStorageAvailable = () => {
|
29
|
+
const key = 'videojs-persist-test-' + Math.floor(Math.random() * 10);
|
30
|
+
try {
|
31
|
+
window.localStorage.setItem(key, '.');
|
32
|
+
window.localStorage.removeItem(key);
|
33
|
+
return true;
|
34
|
+
} catch (e) {
|
35
|
+
return false;
|
36
|
+
}
|
37
|
+
};
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Function to invoke when the player is ready.
|
41
|
+
*
|
42
|
+
* This is a great place for your plugin to initialize itself. When this
|
43
|
+
* function is called, the player will have its DOM and child components
|
44
|
+
* in place.
|
45
|
+
*
|
46
|
+
* @function onPlayerReady
|
47
|
+
* @param {Player} player
|
48
|
+
* A Video.js player object.
|
49
|
+
*
|
50
|
+
* @param {Object} [options={}]
|
51
|
+
* A plain object containing options for the plugin.
|
52
|
+
*/
|
53
|
+
const onPlayerReady = (player, options) => {
|
54
|
+
player.addClass('vjs-persist');
|
55
|
+
const playerRates = player.playbackRates ? player.playbackRates() : player.options_.playbackRates || [];
|
56
|
+
const data = JSON.parse(window.localStorage.getItem(options.key)) || {};
|
57
|
+
['playbackRate', 'volume', 'muted'].forEach(prop => {
|
58
|
+
if (!options[prop]) {
|
59
|
+
return;
|
60
|
+
}
|
61
|
+
const val = data[prop];
|
62
|
+
if (val) {
|
63
|
+
if (prop === 'playbackRate' && !options.restoreUnsupportedRate && !playerRates.includes(val)) {
|
64
|
+
return;
|
65
|
+
}
|
66
|
+
player[prop](val);
|
67
|
+
}
|
68
|
+
});
|
69
|
+
if (options.playbackRate) {
|
70
|
+
player.on('ratechange', () => {
|
71
|
+
player.defaultPlaybackRate(player.playbackRate());
|
72
|
+
data.playbackRate = player.playbackRate();
|
73
|
+
window.localStorage.setItem(options.key, JSON.stringify(data));
|
74
|
+
});
|
75
|
+
}
|
76
|
+
if (options.muted || options.volume) {
|
77
|
+
player.on('volumechange', () => {
|
78
|
+
if (options.muted) {
|
79
|
+
player.defaultMuted(player.muted());
|
80
|
+
data.muted = player.muted();
|
81
|
+
}
|
82
|
+
if (options.volume) {
|
83
|
+
data.volume = player.volume();
|
84
|
+
}
|
85
|
+
window.localStorage.setItem(options.key, JSON.stringify(data));
|
86
|
+
});
|
87
|
+
}
|
88
|
+
};
|
89
|
+
|
90
|
+
/**
|
91
|
+
* A video.js plugin.
|
92
|
+
*
|
93
|
+
* In the plugin function, the value of `this` is a video.js `Player`
|
94
|
+
* instance. You cannot rely on the player being in a "ready" state here,
|
95
|
+
* depending on how the plugin is invoked. This may or may not be important
|
96
|
+
* to you; if not, remove the wait for "ready"!
|
97
|
+
*
|
98
|
+
* @function persist
|
99
|
+
* @param {Object} [options={}]
|
100
|
+
* An object of options left to the plugin author to define.
|
101
|
+
*/
|
102
|
+
const persist = function (options) {
|
103
|
+
if (!localStorageAvailable()) {
|
104
|
+
videojs__default["default"].log('videojs-persist aborted. localStorage not available.');
|
105
|
+
return;
|
106
|
+
}
|
107
|
+
this.ready(() => {
|
108
|
+
onPlayerReady(this, (videojs__default["default"].obj ? videojs__default["default"].obj.merge : videojs__default["default"].mergeOptions)(defaults, options));
|
109
|
+
});
|
110
|
+
};
|
111
|
+
|
112
|
+
// Register the plugin with video.js.
|
113
|
+
videojs__default["default"].registerPlugin('persist', persist);
|
114
|
+
|
115
|
+
// Include the version number.
|
116
|
+
persist.VERSION = version;
|
117
|
+
|
118
|
+
return persist;
|
119
|
+
|
120
|
+
}));
|
data/assets/theme/j1/modules/videojs/plugins/controls/persist-settings/js/videojs-persist.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! @name videojs-persist @version 0.2.0 @license MIT */
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojsPersist=t(e.videojs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e);const o={muted:!0,playbackRate:!0,volume:!0,restoreUnsupportedRate:!1,key:"videojs-persist"},s=function(e){(()=>{const e="videojs-persist-test-"+Math.floor(10*Math.random());try{return window.localStorage.setItem(e,"."),window.localStorage.removeItem(e),!0}catch(e){return!1}})()?this.ready((()=>{((e,t)=>{e.addClass("vjs-persist");const a=e.playbackRates?e.playbackRates():e.options_.playbackRates||[],o=JSON.parse(window.localStorage.getItem(t.key))||{};["playbackRate","volume","muted"].forEach((s=>{if(!t[s])return;const l=o[s];if(l){if("playbackRate"===s&&!t.restoreUnsupportedRate&&!a.includes(l))return;e[s](l)}})),t.playbackRate&&e.on("ratechange",(()=>{e.defaultPlaybackRate(e.playbackRate()),o.playbackRate=e.playbackRate(),window.localStorage.setItem(t.key,JSON.stringify(o))})),(t.muted||t.volume)&&e.on("volumechange",(()=>{t.muted&&(e.defaultMuted(e.muted()),o.muted=e.muted()),t.volume&&(o.volume=e.volume()),window.localStorage.setItem(t.key,JSON.stringify(o))}))})(this,(a.default.obj?a.default.obj.merge:a.default.mergeOptions)(o,e))})):a.default.log("videojs-persist aborted. localStorage not available.")};return a.default.registerPlugin("persist",s),s.VERSION="0.2.0",s}));
|
data/assets/theme/j1/modules/videojs/plugins/controls/playbackrate-adjuster/!examples/index.html
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>videojs-playbackrate-adjuster Demo</title>
|
6
|
+
<link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
|
7
|
+
<style>
|
8
|
+
.video-js {
|
9
|
+
width: 720px;
|
10
|
+
height: 405px;
|
11
|
+
}
|
12
|
+
</style>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<video id="videojs-playbackrate-adjuster-player" class="video-js vjs-default-skin" controls>
|
16
|
+
<source src="//d2zihajmogu5jn.cloudfront.net/sintel/master.m3u8" type="application/x-mpegurl">
|
17
|
+
<source src="//vjs.zencdn.net/v/oceans.mp4" type="video/mp4">
|
18
|
+
<source src="//vjs.zencdn.net/v/oceans.webm" type="video/webm">
|
19
|
+
</video>
|
20
|
+
<ul>
|
21
|
+
<li><a href="test/">Run unit tests in browser.</a></li>
|
22
|
+
|
23
|
+
|
24
|
+
</ul>
|
25
|
+
<script src="node_modules/video.js/dist/video.js"></script>
|
26
|
+
<script src="dist/browser/videojs-playbackrate-adjuster.js"></script>
|
27
|
+
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
|
28
|
+
<script>
|
29
|
+
(function(window, videojs) {
|
30
|
+
var player = window.player = videojs('videojs-playbackrate-adjuster-player', {
|
31
|
+
playbackRates: [0.5, 1, 1.5, 2, 4]
|
32
|
+
});
|
33
|
+
|
34
|
+
}(window, window.videojs));
|
35
|
+
</script>
|
36
|
+
</body>
|
37
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) Gary Katsevman <me@gkatsev.com>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# videojs-playbackrate-adjuster
|
2
|
+
|
3
|
+
A Video.js 7 middleware that adjusts controls based on playback rate
|
4
|
+
|
5
|
+
When the playback rate is adjusted in from the menu, the middleware tells the player that the duration and times have changes and then uses the current playback rate to adjust the times in the control bar.
|
6
|
+
For example, when the player is playing back in 2x, a 20 minute video will look like a 10 minute video.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
```sh
|
11
|
+
npm install --save videojs-playbackrate-adjuster
|
12
|
+
```
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
To include videojs-playbackrate-adjuster on your website or web application, use any of the following methods.
|
17
|
+
Since it's a middleware and attaches itself to Video.js automatically,
|
18
|
+
it only needs to be included or required.
|
19
|
+
|
20
|
+
### `<script>` Tag
|
21
|
+
|
22
|
+
This is the simplest case. Get the script in whatever way you prefer and include the plugin _after_ you include [video.js][videojs], so that the `videojs` global is available.
|
23
|
+
|
24
|
+
```html
|
25
|
+
<script src="//path/to/video.min.js"></script>
|
26
|
+
<script src="//path/to/videojs-playbackrate-adjuster.min.js"></script>
|
27
|
+
<script>
|
28
|
+
var player = videojs('my-video');
|
29
|
+
</script>
|
30
|
+
```
|
31
|
+
|
32
|
+
### Browserify
|
33
|
+
|
34
|
+
When using with Browserify, install videojs-playbackrate-adjuster via npm and `require` the plugin as you would any other module.
|
35
|
+
|
36
|
+
```js
|
37
|
+
var videojs = require('video.js');
|
38
|
+
|
39
|
+
// The actual middleware function is exported by this module, but it is also
|
40
|
+
// attached to Video.js; so, there is no need to assign it to a variable.
|
41
|
+
require('videojs-playbackrate-adjuster');
|
42
|
+
|
43
|
+
var player = videojs('my-video');
|
44
|
+
```
|
45
|
+
|
46
|
+
### RequireJS/AMD
|
47
|
+
|
48
|
+
When using with RequireJS (or another AMD library), get the script in whatever way you prefer and `require` the plugin as you normally would:
|
49
|
+
|
50
|
+
```js
|
51
|
+
require(['video.js', 'videojs-playbackrate-adjuster'], function(videojs) {
|
52
|
+
var player = videojs('my-video');
|
53
|
+
});
|
54
|
+
```
|
55
|
+
|
56
|
+
## License
|
57
|
+
|
58
|
+
MIT. Copyright (c) Gary Katsevman <me@gkatsev.com>
|
59
|
+
|
60
|
+
|
61
|
+
[videojs]: http://videojs.com/
|
@@ -0,0 +1,94 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/theme/j1/modules/videojs/js/plugins/controls/playbackrate-adjuster/playbackrate-adjuster.js
|
4
|
+
# Provides the playbackrate-adjuster middleware for Video.js V8 and newer
|
5
|
+
# See: https://github.com/ctd1500/videojs-hotkeys
|
6
|
+
#
|
7
|
+
# Product/Info:
|
8
|
+
# http://jekyll.one
|
9
|
+
#
|
10
|
+
# Copyright (C) Gary Katsevman <me@gkatsev.com>
|
11
|
+
# Copyright (C) 2023-2025 Juergen Adams
|
12
|
+
#
|
13
|
+
# playbackrate-adjuster is licensed under the under MIT License.
|
14
|
+
#
|
15
|
+
# J1 Theme is licensed under MIT License.
|
16
|
+
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
|
17
|
+
# -----------------------------------------------------------------------------
|
18
|
+
*/
|
19
|
+
|
20
|
+
(function (global, factory) {
|
21
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js')) :
|
22
|
+
typeof define === 'function' && define.amd ? define(['video.js'], factory) :
|
23
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.videojsskipButtons = factory(global.videojs));
|
24
|
+
})(this, (function (videojs) {
|
25
|
+
'use strict';
|
26
|
+
|
27
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
28
|
+
|
29
|
+
var videojs__default = /*#__PURE__*/_interopDefaultLegacy(videojs);
|
30
|
+
var version = "0.0.1";
|
31
|
+
|
32
|
+
const createNewRanges = (timeRanges, playbackRate) => {
|
33
|
+
const newRanges = [];
|
34
|
+
|
35
|
+
for (let i = 0; i < timeRanges.length; i++) {
|
36
|
+
newRanges.push([
|
37
|
+
timeRanges.start(i) / playbackRate,
|
38
|
+
timeRanges.end(i) / playbackRate]);
|
39
|
+
}
|
40
|
+
|
41
|
+
return videojs.createTimeRange(newRanges);
|
42
|
+
};
|
43
|
+
|
44
|
+
const playbackrateAdjuster = function(player) {
|
45
|
+
let tech;
|
46
|
+
|
47
|
+
player.on('ratechange', function() {
|
48
|
+
tech.trigger('durationchange');
|
49
|
+
tech.trigger('timeupdate');
|
50
|
+
});
|
51
|
+
|
52
|
+
return {
|
53
|
+
setSource(srcObj, next) {
|
54
|
+
next(null, srcObj);
|
55
|
+
},
|
56
|
+
|
57
|
+
setTech(newTech) {
|
58
|
+
tech = newTech;
|
59
|
+
},
|
60
|
+
|
61
|
+
duration(dur) {
|
62
|
+
return dur / player.playbackRate();
|
63
|
+
},
|
64
|
+
|
65
|
+
currentTime(ct) {
|
66
|
+
return ct / player.playbackRate();
|
67
|
+
},
|
68
|
+
|
69
|
+
setCurrentTime(ct) {
|
70
|
+
return ct * player.playbackRate();
|
71
|
+
},
|
72
|
+
|
73
|
+
buffered(bf) {
|
74
|
+
return createNewRanges(bf, player.playbackRate());
|
75
|
+
},
|
76
|
+
|
77
|
+
seekable(seekable) {
|
78
|
+
return createNewRanges(seekable, player.playbackRate());
|
79
|
+
},
|
80
|
+
|
81
|
+
played(played) {
|
82
|
+
return createNewRanges(played, player.playbackRate());
|
83
|
+
}
|
84
|
+
};
|
85
|
+
|
86
|
+
}; // END playbackrateAdjuster
|
87
|
+
|
88
|
+
var registerPlugin = videojs.registerPlugin || videojs.plugin;
|
89
|
+
|
90
|
+
// register plugin
|
91
|
+
//
|
92
|
+
registerPlugin('playbackrateAdjuster', playbackrateAdjuster);
|
93
|
+
|
94
|
+
}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/theme/j1/modules/videojs/js/plugins/controls/playbackrate-adjuster/playbackrate-adjuster.min-js
|
4
|
+
# Provides the playbackrate-adjuster middleware for Video.js V8 and newer
|
5
|
+
# See: https://github.com/ctd1500/videojs-hotkeys
|
6
|
+
#
|
7
|
+
# Product/Info:
|
8
|
+
# http://jekyll.one
|
9
|
+
#
|
10
|
+
# Copyright (C) Gary Katsevman <me@gkatsev.com>
|
11
|
+
# Copyright (C) 2023-2025 Juergen Adams
|
12
|
+
#
|
13
|
+
# playbackrate-adjuster is licensed under the under MIT License.
|
14
|
+
#
|
15
|
+
# J1 Theme is licensed under MIT License.
|
16
|
+
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
|
17
|
+
# -----------------------------------------------------------------------------
|
18
|
+
*/
|
19
|
+
|
20
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojsskipButtons=t(e.videojs)}(this,function(e){"use strict";const t=(t,a)=>{const n=[];for(let e=0;e<t.length;e++)n.push([t.start(e)/a,t.end(e)/a]);return e.createTimeRange(n)};(e.registerPlugin||e.plugin)("playbackrateAdjuster",function(e){let a;return e.on("ratechange",function(){a.trigger("durationchange"),a.trigger("timeupdate")}),{setSource(e,t){t(null,e)},setTech(e){a=e},duration:t=>t/e.playbackRate(),currentTime:t=>t/e.playbackRate(),setCurrentTime:t=>t*e.playbackRate(),buffered:a=>t(a,e.playbackRate()),seekable:a=>t(a,e.playbackRate()),played:a=>t(a,e.playbackRate())}})});
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# videojs-seek-buttons
|
2
2
|
|
3
|
-
Plugin for video.js to add seek buttons to the control bar. These buttons
|
3
|
+
Plugin for video.js to add seek buttons to the control bar. These buttons
|
4
|
+
llow the user to skip forward or back by a configured number of seconds.
|
4
5
|
|
5
6
|
## Table of Contents
|
6
7
|
|
@@ -20,13 +21,15 @@ Plugin for video.js to add seek buttons to the control bar. These buttons allow
|
|
20
21
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
21
22
|
## Installation
|
22
23
|
|
23
|
-
Version 3.x requires video.js version 6.x or 7.x to be installed as a peer
|
24
|
+
Version 3.x requires video.js version 6.x or 7.x to be installed as a peer
|
25
|
+
dependency (latest v7 is recommended).
|
24
26
|
|
25
27
|
```sh
|
26
28
|
npm install videojs-seek-buttons@latest7
|
27
29
|
```
|
28
30
|
|
29
|
-
Version 4.x requires video.js version 8.x to be installed as a peer dependency.
|
31
|
+
Version 4.x requires video.js version 8.x to be installed as a peer dependency.
|
32
|
+
Earlier versions of Video.js are not supported.
|
30
33
|
|
31
34
|
```sh
|
32
35
|
npm install videojs-seek-buttons@latest8
|
@@ -43,19 +46,28 @@ However Video.js 8.2.0 + has a [built-in seek buttons functionality](https://vid
|
|
43
46
|
|
44
47
|
### Control position
|
45
48
|
|
46
|
-
`forwardIndex` and `backIndex` set the posiiton of the button in the control
|
49
|
+
`forwardIndex` and `backIndex` set the posiiton of the button in the control
|
50
|
+
bar. Note if both a back and forward button are used, the forward button is
|
51
|
+
inserted first.
|
47
52
|
|
48
|
-
Assuming the standard control bar, the play button is at index `0`. With the
|
53
|
+
Assuming the standard control bar, the play button is at index `0`. With the
|
54
|
+
default index of `1` for both, the forward button is inserted after the play
|
55
|
+
button, then the back button is inserted after the play button and before the
|
56
|
+
forward button. Setting `backIndex` to `0` would place the back button before
|
57
|
+
the play button instead, so they surround the play button.
|
49
58
|
|
50
59
|
## Usage
|
51
60
|
|
52
|
-
To include videojs-seek-buttons on your website or web application, use any
|
61
|
+
To include videojs-seek-buttons on your website or web application, use any
|
62
|
+
of the following methods to include the script.
|
53
63
|
|
54
64
|
You also need to include the plugin's CSS.
|
55
65
|
|
56
66
|
### `<script>` Tag
|
57
67
|
|
58
|
-
This is the simplest case. Get the script in whatever way you prefer and
|
68
|
+
This is the simplest case. Get the script in whatever way you prefer and
|
69
|
+
include the plugin _after_ you include [video.js][videojs], so that the
|
70
|
+
`videojs` global is available.
|
59
71
|
|
60
72
|
```html
|
61
73
|
<link rel="stylesheet" href="//path/to/video-js.css">
|
@@ -91,8 +103,10 @@ The dist versions will be available from services which host npm packages such a
|
|
91
103
|
|
92
104
|
### Browserify/CommonJS
|
93
105
|
|
94
|
-
When using with Browserify, install videojs-seek-buttons via npm and `require`
|
95
|
-
|
106
|
+
When using with Browserify, install videojs-seek-buttons via npm and `require`
|
107
|
+
the plugin as you would any other module. Make sure if using React to also
|
108
|
+
`include "videojs-seek-buttons/dist/videojs-seek-buttons.css"`, otherwise the
|
109
|
+
icons will not appear in the control bar.
|
96
110
|
|
97
111
|
```js
|
98
112
|
var videojs = require('video.js');
|
@@ -112,7 +126,8 @@ player.seekButtons({
|
|
112
126
|
|
113
127
|
### RequireJS/AMD
|
114
128
|
|
115
|
-
When using with RequireJS (or another AMD library), get the script in
|
129
|
+
When using with RequireJS (or another AMD library), get the script in
|
130
|
+
whatever way you prefer and `require` the plugin as you normally would:
|
116
131
|
|
117
132
|
```js
|
118
133
|
require(['video.js', 'videojs-seek-buttons'], function(videojs) {
|
@@ -129,5 +144,4 @@ require(['video.js', 'videojs-seek-buttons'], function(videojs) {
|
|
129
144
|
|
130
145
|
Apache-2.0. Copyright (c) mister-ben <git@misterben.me>
|
131
146
|
|
132
|
-
|
133
147
|
[videojs]: http://videojs.com/
|
data/assets/theme/j1/modules/videojs/{css/plugins/controls → plugins/controls/zoom/css}/zoom.css
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
# -----------------------------------------------------------------------------
|
3
|
-
# ~/assets/theme/j1/modules/videojs/css/plugins/controls/zoom.css
|
3
|
+
# ~/assets/theme/j1/modules/videojs/css/plugins/controls/css/zoom.css
|
4
4
|
# Provides CSS Styles for the VideoJS (V8) plugin Zoom, Version 1.2.0
|
5
5
|
# See: https://github.com/theonlyducks/videojs-zoom
|
6
6
|
#
|
@@ -23,8 +23,8 @@
|
|
23
23
|
font-style: normal;
|
24
24
|
font-weight: 400;
|
25
25
|
font-display: block;
|
26
|
-
src: url("
|
27
|
-
url("
|
26
|
+
src: url("../../../../assets/icons/material-icons.woff2") format("woff2"),
|
27
|
+
url("../../../../assets/icons/material-icons.woff") format("woff");
|
28
28
|
}
|
29
29
|
|
30
30
|
.video-js .vjs-zoom-icons {
|
@@ -52,13 +52,14 @@
|
|
52
52
|
font-style: normal;
|
53
53
|
}
|
54
54
|
|
55
|
+
/* md-window */
|
55
56
|
.video-js .vjs-zoom-duck .vjs-icon-placeholder:before {
|
56
|
-
content: "\
|
57
|
+
content: "\f128";
|
57
58
|
}
|
58
59
|
|
59
60
|
.video-js .vjs-zoom-duck__container {
|
60
|
-
|
61
|
-
|
61
|
+
left: 130px;
|
62
|
+
bottom: 75px;
|
62
63
|
padding: 10px;
|
63
64
|
visibility: hidden;
|
64
65
|
position: absolute;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/theme/j1/modules/videojs/css/plugins/controls/css/zoom.min.css
|
4
|
+
# Provides CSS styles for the VideoJS (V8) plugin Zoom, Version 1.2.0
|
5
|
+
# See: https://github.com/theonlyducks/videojs-zoom
|
6
|
+
#
|
7
|
+
# Product/Info:
|
8
|
+
# https://github.com/theonlyducks/videojs-zoom/
|
9
|
+
# https://jekyll.one
|
10
|
+
#
|
11
|
+
# Copyright (C) 2023-2025 The Only Ducks
|
12
|
+
# Copyright (C) 2023-2025 Juergen Adams
|
13
|
+
#
|
14
|
+
# J1 Template is licensed under the MIT License.
|
15
|
+
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
|
16
|
+
# Videojs Zoom is licensed under the MIT License.
|
17
|
+
# See: https://github.com/theonlyducks/videojs-zoom/blob/main/LICENSE
|
18
|
+
# -----------------------------------------------------------------------------
|
19
|
+
*/
|
20
|
+
|
21
|
+
@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;font-display:block;src:url("../../../../assets/icons/material-icons.woff2") format("woff2"),url("../../../../assets/icons/material-icons.woff") format("woff")}.video-js .vjs-zoom-icons{font-family:"Material Icons";font-weight:normal;font-style:normal;font-size:22px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"liga"}.video-js .vjs-zoom-duck{font-family:"VideoJS";cursor:pointer;font-weight:400;font-style:normal}.video-js .vjs-zoom-duck .vjs-icon-placeholder:before{content:"\f128"}.video-js .vjs-zoom-duck__container{left:130px;bottom:75px;padding:10px;visibility:hidden;position:absolute;opacity:0;background-color:rgba(43,51,63,.7);transition:visibility .2s,opacity .2s}.video-js .vjs-zoom-duck__container.open{display:flex;opacity:1;visibility:visible;flex-direction:column}.video-js .vjs-zoom-duck__space{width:22px;height:22px;display:inline-block}.video-js .vjs-zoom-duck__button{cursor:pointer;border:0;width:22px;height:22px;border-radius:100%}.video-js .vjs-zoom-duck__button:hover{padding-left:0;padding-top:0;color:rgba(43,51,63,.7);background-color:white}
|
22
|
+
|
data/assets/theme/j1/modules/videojs/{js/plugins/players/dm → plugins/players/dm/js}/dailymotion.js
RENAMED
@@ -630,7 +630,7 @@
|
|
630
630
|
isDev && logger.debug('\n' + 'version of videoJS detected: ' + videojs.VERSION);
|
631
631
|
|
632
632
|
loadScript('//api.dmcdn.net/all.js', apiLoaded);
|
633
|
-
// loadScript('/assets/theme/j1/modules/videojs/
|
633
|
+
// loadScript('/assets/theme/j1/modules/videojs/plugins/players/dm/api/dailymotion.sdk.min.js', apiLoaded);
|
634
634
|
injectCss();
|
635
635
|
|
636
636
|
clearInterval(dependencies_met_page_ready);
|