mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-23 00:25:15 +01:00
videojs-seek-buttons v3.0.0 (#1140)
This commit is contained in:
parent
3e89222ebd
commit
1e11e037c2
@ -1861,6 +1861,8 @@ https://cdn.jsdelivr.net/npm/videojs-seek-buttons@1.6.0/dist/videojs-seek-button
|
|||||||
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@1.6.0/dist/videojs-seek-buttons.min.js
|
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@1.6.0/dist/videojs-seek-buttons.min.js
|
||||||
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@2.2.1/dist/videojs-seek-buttons.css
|
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@2.2.1/dist/videojs-seek-buttons.css
|
||||||
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@2.2.1/dist/videojs-seek-buttons.min.js
|
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@2.2.1/dist/videojs-seek-buttons.min.js
|
||||||
|
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@3.0.0/dist/videojs-seek-buttons.css
|
||||||
|
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@3.0.0/dist/videojs-seek-buttons.min.js
|
||||||
https://cdn.jsdelivr.net/npm/vue@1.0.28/dist/vue.min.js
|
https://cdn.jsdelivr.net/npm/vue@1.0.28/dist/vue.min.js
|
||||||
https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js
|
https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js
|
||||||
https://cdn.jsdelivr.net/npm/vue-match-media@1.0.3/dist/index.min.js
|
https://cdn.jsdelivr.net/npm/vue-match-media@1.0.3/dist/index.min.js
|
||||||
|
@ -452,6 +452,7 @@ targets.setLastVersion = function (type, version) {
|
|||||||
if (type.startsWith('/vex-js/4.')) return '4.1.0';
|
if (type.startsWith('/vex-js/4.')) return '4.1.0';
|
||||||
if (type.startsWith('/videojs-seek-buttons/1.')) return '1.6.0';
|
if (type.startsWith('/videojs-seek-buttons/1.')) return '1.6.0';
|
||||||
if (type.startsWith('/videojs-seek-buttons/2.')) return '2.2.1';
|
if (type.startsWith('/videojs-seek-buttons/2.')) return '2.2.1';
|
||||||
|
if (type.startsWith('/videojs-seek-buttons/3.')) return '3.0.0';
|
||||||
if (type.startsWith('/video.js/')) {
|
if (type.startsWith('/video.js/')) {
|
||||||
if (helpers.compareVersion('5.20.5', version)) return '5.20.5'; // <= 5.20.5
|
if (helpers.compareVersion('5.20.5', version)) return '5.20.5'; // <= 5.20.5
|
||||||
if (helpers.compareVersion('6.13.0', version)) return '6.13.0'; // > 5.20.5 to <= 6.13.0
|
if (helpers.compareVersion('6.13.0', version)) return '6.13.0'; // > 5.20.5 to <= 6.13.0
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
<h2>New in LocalCDN:</h2>
|
<h2>New in LocalCDN:</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="release-notes-area">
|
<div class="release-notes-area">
|
||||||
|
<p>Added</p>
|
||||||
|
<ul>
|
||||||
|
<li>videojs-seek-buttons v3.0.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1140">#1140</a>)</li>
|
||||||
|
</ul>
|
||||||
<p>Improved</p>
|
<p>Improved</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Consider two-digit weird version numbers (<a href="https://codeberg.org/nobody/LocalCDN/issues/1139">#1139</a>)</li>
|
<li>Consider two-digit weird version numbers (<a href="https://codeberg.org/nobody/LocalCDN/issues/1139">#1139</a>)</li>
|
||||||
|
2
resources/videojs-seek-buttons/3.0.0/videojs-seek-buttons.min.css
vendored
Normal file
2
resources/videojs-seek-buttons/3.0.0/videojs-seek-buttons.min.css
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/*! @name videojs-seek-buttons @version 3.0.0 @license Apache-2.0 */
|
||||||
|
.video-js .vjs-seek-button{font-family:'VideoJS';cursor:pointer;font-weight:400;font-style:normal}.video-js .vjs-seek-button.skip-back::before,.video-js.vjs-v6 .vjs-seek-button.skip-back .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-back .vjs-icon-placeholder::before{transform:rotate(-45deg);-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);content:'\f116'}.video-js .vjs-seek-button.skip-forward::before{transform:rotateY(180deg) rotate(-45deg);-ms-transform:rotateY(180deg) rotate(-45deg);-webkit-transform:rotateY(180deg) rotate(-45deg);content:'\f116'}.video-js.vjs-v6 .vjs-seek-button.skip-back::before,.video-js.vjs-v6 .vjs-seek-button.skip-forward::before,.video-js.vjs-v7 .vjs-seek-button.skip-back::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward::before{content:none}.video-js.vjs-v6 .vjs-seek-button.skip-forward .vjs-icon-placeholder::before,.video-js.vjs-v7 .vjs-seek-button.skip-forward .vjs-icon-placeholder::before{transform:scale(-1,1) rotate(-45deg);-ms-transform:scale(-1,1) rotate(-45deg);-webkit-transform:scale(-1,1) rotate(-45deg);content:'\f116'}
|
@ -0,0 +1,2 @@
|
|||||||
|
/*! @name videojs-seek-buttons @version 3.0.0 @license Apache-2.0 */
|
||||||
|
!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).videojsSeekButtons=t(e.videojs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=t(e);function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}var r=o.default.getComponent("Button"),i={forwardIndex:1,backIndex:1},s=function(e){var t=this;this.ready((function(){!function(e,t){e.addClass("vjs-seek-buttons"),t.forward&&t.forward>0&&(e.controlBar.seekForward=e.controlBar.addChild("seekButton",{direction:"forward",seconds:t.forward},t.forwardIndex)),t.back&&t.back>0&&(e.controlBar.seekBack=e.controlBar.addChild("seekButton",{direction:"back",seconds:t.back},t.backIndex))}(t,o.default.mergeOptions(i,e))}))};s.VERSION="3.0.0";var a=function(e){var t,o;function r(t,o){var n;return"forward"===(n=e.call(this,t,o)||this).options_.direction?n.controlText(n.localize("Seek forward {{seconds}} seconds").replace("{{seconds}}",n.options_.seconds)):"back"===n.options_.direction&&n.controlText(n.localize("Seek back {{seconds}} seconds").replace("{{seconds}}",n.options_.seconds)),n}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,n(t,o);var i=r.prototype;return i.buildCSSClass=function(){return"vjs-seek-button skip-"+this.options_.direction+" skip-"+this.options_.seconds+" "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(){var e=this.player_.currentTime();if("forward"===this.options_.direction){var t=this.player_.duration();this.player_.liveTracker&&this.player_.liveTracker.isLive()&&(t=this.player_.liveTracker.seekableEnd()),this.player_.currentTime(Math.min(e+this.options_.seconds,t))}else"back"===this.options_.direction&&this.player_.currentTime(Math.max(0,e-this.options_.seconds))},r}(r);return o.default.registerComponent("SeekButton",a),o.default.registerPlugin("seekButtons",s),s}));
|
Loading…
Reference in New Issue
Block a user