@desynova-digital/player 3.13.17 → 3.13.18
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.
- package/Manager.js +9 -10
- package/actions/player.js +15 -30
- package/actions/video.js +25 -50
- package/colors.js +1 -2
- package/components/AudioMeter.js +12 -14
- package/components/BigPlayButton.js +12 -14
- package/components/ImageViewer.js +13 -15
- package/components/MarkerBar.js +12 -14
- package/components/Player.js +14 -16
- package/components/PlayerHeader.js +12 -14
- package/components/Playlist.js +15 -14
- package/components/PointersBar.js +14 -16
- package/components/PosterImage.js +1 -2
- package/components/Shortcut.js +151 -120
- package/components/Slider.js +12 -14
- package/components/TagsBar.js +12 -14
- package/components/Video.js +14 -17
- package/components/control-bar/AudioTracksMenuButton.js +11 -13
- package/components/control-bar/CameraButton.js +12 -14
- package/components/control-bar/CommentsButton.js +12 -14
- package/components/control-bar/ControlBar.js +12 -14
- package/components/control-bar/EditorControlMenuButton.js +12 -14
- package/components/control-bar/ForwardControl.js +1 -2
- package/components/control-bar/ForwardReplayControl.js +13 -15
- package/components/control-bar/FullscreenToggle.js +12 -14
- package/components/control-bar/PlayToggle.js +12 -14
- package/components/control-bar/ReplayControl.js +1 -2
- package/components/control-bar/SubtitleLanguagesMenuButton.js +11 -13
- package/components/control-bar/SubtitleMovementMenu.js +12 -14
- package/components/control-bar/VolumeMenuButton.js +12 -14
- package/components/control-bar/ZoomMenuButton.js +12 -14
- package/components/marking-controls/MarkInControl.js +12 -14
- package/components/marking-controls/MarkOutControl.js +12 -14
- package/components/marking-controls/MarkingAddButton.js +12 -14
- package/components/marking-controls/MarkingDeleteButton.js +12 -14
- package/components/marking-controls/MarkingPreview.js +12 -14
- package/components/progress-bar/AudioWaveform.js +12 -14
- package/components/progress-bar/MouseTimeDisplay.js +1 -2
- package/components/progress-bar/ProgressControl.js +12 -14
- package/components/progress-bar/SeekBar.js +12 -14
- package/components/progress-bar/Timeline.js +12 -14
- package/components/settings-menu-control/PlaybackRateControl.js +12 -14
- package/components/settings-menu-control/SafeAreaControl.js +12 -14
- package/components/time-controls/CurrentTimeDisplay.js +1 -2
- package/components/time-controls/DurationDisplay.js +1 -2
- package/components/volume-control/VolumeBar.js +12 -14
- package/components/volume-control/VolumeLevel.js +1 -2
- package/components/zoom-control/ZoomBar.js +12 -14
- package/components/zoom-control/ZoomLevel.js +1 -2
- package/index.js +3 -3
- package/package.json +1 -1
- package/reducers/index.js +2 -4
- package/reducers/operation.js +6 -7
- package/reducers/player.js +6 -8
- package/utils/browser.js +4 -8
- package/utils/fullscreen.js +4 -5
- package/utils/index.js +6 -7
package/utils/index.js
CHANGED
|
@@ -13,18 +13,18 @@ exports.throttle = throttle;
|
|
|
13
13
|
exports.timeToSeconds = timeToSeconds;
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
-
function _typeof(
|
|
16
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
17
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
18
18
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
19
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
20
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
21
21
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
22
22
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
-
function ownKeys(
|
|
24
|
-
function _objectSpread(
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
-
function _toPropertyKey(
|
|
27
|
-
function _toPrimitive(
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
27
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
28
|
/**
|
|
29
29
|
* @file seconds-to-time.js
|
|
30
30
|
*
|
|
@@ -220,5 +220,4 @@ function throttle(callback, limit) {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
var mediaProperties = ['error', 'src', 'srcObject', 'currentSrc', 'crossOrigin', 'networkState', 'preload', 'buffered', 'readyState', 'seeking', 'currentTime', 'duration', 'paused', 'defaultPlaybackRate', 'playbackRate', 'played', 'seekable', 'ended', 'autoplay', 'loop', 'mediaGroup', 'controller', 'controls', 'volume', 'muted', 'defaultMuted', 'audioTracks', 'videoTracks', 'textTracks', 'width', 'height', 'videoWidth', 'videoHeight', 'poster'];
|
|
224
|
-
exports.mediaProperties = mediaProperties;
|
|
223
|
+
var mediaProperties = exports.mediaProperties = ['error', 'src', 'srcObject', 'currentSrc', 'crossOrigin', 'networkState', 'preload', 'buffered', 'readyState', 'seeking', 'currentTime', 'duration', 'paused', 'defaultPlaybackRate', 'playbackRate', 'played', 'seekable', 'ended', 'autoplay', 'loop', 'mediaGroup', 'controller', 'controls', 'volume', 'muted', 'defaultMuted', 'audioTracks', 'videoTracks', 'textTracks', 'width', 'height', 'videoWidth', 'videoHeight', 'poster'];
|