@desynova-digital/player 4.0.105 → 4.0.106
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 +8 -9
- package/actions/player.js +1 -1
- package/components/AudioMeter.js +29 -30
- package/components/BigPlayButton.js +16 -17
- package/components/ImageViewer.js +16 -17
- package/components/MarkerBar.js +16 -17
- package/components/Menu.js +2 -2
- package/components/Player.js +51 -52
- package/components/PlayerHeader.js +25 -26
- package/components/Playlist.js +14 -15
- package/components/PointersBar.js +19 -20
- package/components/PosterImage.js +1 -1
- package/components/SDOutline.js +7 -7
- package/components/Shortcut.js +69 -70
- package/components/Slider.js +33 -33
- package/components/TagsBar.js +15 -16
- package/components/Video.js +123 -124
- package/components/control-bar/AudioTracksMenuButton.js +14 -15
- package/components/control-bar/CameraButton.js +15 -16
- package/components/control-bar/CaptionControlMenuButton.js +19 -20
- package/components/control-bar/CommentsButton.js +16 -17
- package/components/control-bar/ControlBar.js +18 -19
- package/components/control-bar/EditorControlMenuButton.js +16 -17
- package/components/control-bar/ForwardControl.js +1 -1
- package/components/control-bar/ForwardReplayControl.js +15 -16
- package/components/control-bar/FullscreenToggle.js +15 -16
- package/components/control-bar/PlayToggle.js +15 -16
- package/components/control-bar/ReplayControl.js +1 -1
- package/components/control-bar/SettingsMenuButton.js +4 -4
- package/components/control-bar/SubtitleLanguagesMenuButton.js +14 -15
- package/components/control-bar/SubtitleMovementMenu.js +16 -17
- package/components/control-bar/VolumeMenuButton.js +16 -17
- package/components/control-bar/ZoomMenuButton.js +16 -17
- package/components/marking-controls/MarkInControl.js +15 -16
- package/components/marking-controls/MarkOutControl.js +15 -16
- package/components/marking-controls/MarkingAddButton.js +15 -16
- package/components/marking-controls/MarkingControl.js +2 -2
- package/components/marking-controls/MarkingDeleteButton.js +15 -16
- package/components/marking-controls/MarkingDuration.js +2 -2
- package/components/marking-controls/MarkingPreview.js +15 -16
- package/components/marking-controls/TimecodeFormatSelector.js +7 -7
- package/components/progress-bar/AudioWaveform.js +15 -16
- package/components/progress-bar/LoadProgressBar.js +1 -1
- package/components/progress-bar/MouseTimeDisplay.js +1 -1
- package/components/progress-bar/PlayProgressBar.js +2 -2
- package/components/progress-bar/ProgressControl.js +102 -51
- package/components/progress-bar/RenderCommentMarkers.js +23 -23
- package/components/progress-bar/SeekBar.js +36 -43
- package/components/progress-bar/Timeline.js +14 -15
- package/components/settings-menu-control/CameraControl.js +3 -3
- package/components/settings-menu-control/ChildMenuComponent.js +28 -29
- package/components/settings-menu-control/ParentMenuComponent.js +17 -18
- package/components/settings-menu-control/PlaybackRateControl.js +15 -16
- package/components/settings-menu-control/SafeAreaControl.js +15 -16
- package/components/settings-menu-control/SettingsMenu.js +12 -12
- package/components/time-controls/CurrentTimeDisplay.js +7 -7
- package/components/time-controls/DurationDisplay.js +2 -2
- package/components/time-controls/TimeDivider.js +2 -2
- package/components/volume-control/VolumeBar.js +24 -25
- package/components/volume-control/VolumeControl.js +1 -1
- package/components/volume-control/VolumeLevel.js +2 -2
- package/components/zoom-control/ZoomBar.js +23 -24
- package/components/zoom-control/ZoomLevel.js +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
- package/reducers/operation.js +2 -2
- package/reducers/player.js +2 -2
- package/utils/browser.js +14 -14
- package/utils/dom.js +18 -18
- package/utils/fullscreen.js +5 -6
- package/utils/index.js +54 -54
package/components/Video.js
CHANGED
|
@@ -17,32 +17,32 @@ var _SDOutline = _interopRequireDefault(require("./SDOutline"));
|
|
|
17
17
|
var _components = require("@desynova-digital/components/components");
|
|
18
18
|
var _utils2 = require("@desynova-digital/player/utils");
|
|
19
19
|
var _templateObject, _templateObject2;
|
|
20
|
-
function _interopRequireDefault(
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
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
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
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
26
|
-
function _slicedToArray(
|
|
25
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
26
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
27
27
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
28
|
-
function _unsupportedIterableToArray(
|
|
29
|
-
function _arrayLikeToArray(
|
|
28
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
29
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30
30
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
31
|
-
function _arrayWithHoles(
|
|
32
|
-
function _classCallCheck(
|
|
33
|
-
function _defineProperties(
|
|
34
|
-
function _createClass(
|
|
31
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
32
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
33
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
34
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
35
35
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36
|
-
function _possibleConstructorReturn(
|
|
36
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
37
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
37
38
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38
|
-
function _getPrototypeOf(
|
|
39
|
-
function
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
function
|
|
43
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
39
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
40
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
41
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
42
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
43
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
44
44
|
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); }
|
|
45
|
-
function _taggedTemplateLiteral(
|
|
45
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
46
46
|
var propTypes = {
|
|
47
47
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
48
48
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
@@ -115,12 +115,11 @@ var VideoBlock = _styledComponents["default"].div(_templateObject2 || (_template
|
|
|
115
115
|
return props.isFullScreen && props.isRightMenuVisible ? '-30px' : '-50px';
|
|
116
116
|
});
|
|
117
117
|
var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
118
|
-
_inherits(Video, _Component);
|
|
119
118
|
function Video(props) {
|
|
120
119
|
var _this;
|
|
121
120
|
_classCallCheck(this, Video);
|
|
122
121
|
_this = _callSuper(this, Video, [props]);
|
|
123
|
-
_defineProperty(
|
|
122
|
+
_defineProperty(_this, "updateAnnotateVisibility", function () {
|
|
124
123
|
if (!_this.video) return;
|
|
125
124
|
var _this$props = _this.props,
|
|
126
125
|
initialTime = _this$props.initialTime,
|
|
@@ -138,10 +137,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
138
137
|
});
|
|
139
138
|
}
|
|
140
139
|
});
|
|
141
|
-
_defineProperty(
|
|
140
|
+
_defineProperty(_this, "onVideoTimeUpdate", function () {
|
|
142
141
|
_this.updateAnnotateVisibility();
|
|
143
142
|
});
|
|
144
|
-
_defineProperty(
|
|
143
|
+
_defineProperty(_this, "buildSmoothPath", function (points, width, height) {
|
|
145
144
|
if (!points || points.length < 2) return '';
|
|
146
145
|
var startX = points[0].x * width;
|
|
147
146
|
var startY = points[0].y * height;
|
|
@@ -160,7 +159,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
160
159
|
path += " L ".concat(lastX, " ").concat(lastY);
|
|
161
160
|
return path;
|
|
162
161
|
});
|
|
163
|
-
_defineProperty(
|
|
162
|
+
_defineProperty(_this, "getTimeData", function (time) {
|
|
164
163
|
var _this$props2 = _this.props,
|
|
165
164
|
inTime = _this$props2.inTime,
|
|
166
165
|
outTime = _this$props2.outTime,
|
|
@@ -198,7 +197,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
198
197
|
formattedTime: currentFormattedTime
|
|
199
198
|
};
|
|
200
199
|
});
|
|
201
|
-
_defineProperty(
|
|
200
|
+
_defineProperty(_this, "isFullscreenWithRightMenu", function () {
|
|
202
201
|
var _this$props3 = _this.props,
|
|
203
202
|
player = _this$props3.player,
|
|
204
203
|
isRightMenuVisible = _this$props3.isRightMenuVisible;
|
|
@@ -231,48 +230,49 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
231
230
|
};
|
|
232
231
|
_this.video = null; // the html5 video
|
|
233
232
|
_this.manager = new _Manager["default"](props.store);
|
|
234
|
-
_this.getStyle = _this.getStyle.bind(
|
|
235
|
-
_this.getChildren = _this.getChildren.bind(
|
|
236
|
-
_this.play = _this.play.bind(
|
|
237
|
-
_this.pause = _this.pause.bind(
|
|
238
|
-
_this.seek = _this.seek.bind(
|
|
239
|
-
_this.forward = _this.forward.bind(
|
|
240
|
-
_this.replay = _this.replay.bind(
|
|
241
|
-
_this.toggleFullscreen = _this.toggleFullscreen.bind(
|
|
242
|
-
_this.getProperties = _this.getProperties.bind(
|
|
243
|
-
_this.renderChildren = _this.renderChildren.bind(
|
|
244
|
-
_this.handleLoadStart = _this.handleLoadStart.bind(
|
|
245
|
-
_this.handleCanPlay = _this.handleCanPlay.bind(
|
|
246
|
-
_this.handleCanPlayThrough = _this.handleCanPlayThrough.bind(
|
|
247
|
-
_this.handlePlay = _this.handlePlay.bind(
|
|
248
|
-
_this.handlePlaying = _this.handlePlaying.bind(
|
|
249
|
-
_this.handlePause = _this.handlePause.bind(
|
|
250
|
-
_this.handleEnded = _this.handleEnded.bind(
|
|
251
|
-
_this.handleWaiting = _this.handleWaiting.bind(
|
|
252
|
-
_this.handleSeeking = _this.handleSeeking.bind(
|
|
253
|
-
_this.handleSeeked = _this.handleSeeked.bind(
|
|
254
|
-
_this.handleFullscreenChange = _this.handleFullscreenChange.bind(
|
|
255
|
-
_this.handleError = _this.handleError.bind(
|
|
256
|
-
_this.handleSuspend = _this.handleSuspend.bind(
|
|
257
|
-
_this.handleAbort = _this.handleAbort.bind(
|
|
258
|
-
_this.handleEmptied = _this.handleEmptied.bind(
|
|
259
|
-
_this.handleStalled = _this.handleStalled.bind(
|
|
260
|
-
_this.handleLoadedMetaData = _this.handleLoadedMetaData.bind(
|
|
261
|
-
_this.handleLoadedData = _this.handleLoadedData.bind(
|
|
262
|
-
_this.handleTimeUpdate = _this.handleTimeUpdate.bind(
|
|
263
|
-
_this.handleRateChange = _this.handleRateChange.bind(
|
|
264
|
-
_this.handleVolumeChange = _this.handleVolumeChange.bind(
|
|
265
|
-
_this.handleDurationChange = _this.handleDurationChange.bind(
|
|
266
|
-
_this.handleProgress = (0, _utils.throttle)(_this.handleProgress.bind(
|
|
267
|
-
_this.handleKeypress = _this.handleKeypress.bind(
|
|
268
|
-
_this.audioVisualizer = _this.audioVisualizer.bind(
|
|
269
|
-
_this.checkWatermark = _this.checkWatermark.bind(
|
|
270
|
-
_this.updateSvgSize = _this.updateSvgSize.bind(
|
|
271
|
-
_this.disconnectResizeObserver = _this.disconnectResizeObserver.bind(
|
|
272
|
-
_this.calculateHeightBasedOnResolution = _this.calculateHeightBasedOnResolution.bind(
|
|
233
|
+
_this.getStyle = _this.getStyle.bind(_this);
|
|
234
|
+
_this.getChildren = _this.getChildren.bind(_this);
|
|
235
|
+
_this.play = _this.play.bind(_this);
|
|
236
|
+
_this.pause = _this.pause.bind(_this);
|
|
237
|
+
_this.seek = _this.seek.bind(_this);
|
|
238
|
+
_this.forward = _this.forward.bind(_this);
|
|
239
|
+
_this.replay = _this.replay.bind(_this);
|
|
240
|
+
_this.toggleFullscreen = _this.toggleFullscreen.bind(_this);
|
|
241
|
+
_this.getProperties = _this.getProperties.bind(_this);
|
|
242
|
+
_this.renderChildren = _this.renderChildren.bind(_this);
|
|
243
|
+
_this.handleLoadStart = _this.handleLoadStart.bind(_this);
|
|
244
|
+
_this.handleCanPlay = _this.handleCanPlay.bind(_this);
|
|
245
|
+
_this.handleCanPlayThrough = _this.handleCanPlayThrough.bind(_this);
|
|
246
|
+
_this.handlePlay = _this.handlePlay.bind(_this);
|
|
247
|
+
_this.handlePlaying = _this.handlePlaying.bind(_this);
|
|
248
|
+
_this.handlePause = _this.handlePause.bind(_this);
|
|
249
|
+
_this.handleEnded = _this.handleEnded.bind(_this);
|
|
250
|
+
_this.handleWaiting = _this.handleWaiting.bind(_this);
|
|
251
|
+
_this.handleSeeking = _this.handleSeeking.bind(_this);
|
|
252
|
+
_this.handleSeeked = _this.handleSeeked.bind(_this);
|
|
253
|
+
_this.handleFullscreenChange = _this.handleFullscreenChange.bind(_this);
|
|
254
|
+
_this.handleError = _this.handleError.bind(_this);
|
|
255
|
+
_this.handleSuspend = _this.handleSuspend.bind(_this);
|
|
256
|
+
_this.handleAbort = _this.handleAbort.bind(_this);
|
|
257
|
+
_this.handleEmptied = _this.handleEmptied.bind(_this);
|
|
258
|
+
_this.handleStalled = _this.handleStalled.bind(_this);
|
|
259
|
+
_this.handleLoadedMetaData = _this.handleLoadedMetaData.bind(_this);
|
|
260
|
+
_this.handleLoadedData = _this.handleLoadedData.bind(_this);
|
|
261
|
+
_this.handleTimeUpdate = _this.handleTimeUpdate.bind(_this);
|
|
262
|
+
_this.handleRateChange = _this.handleRateChange.bind(_this);
|
|
263
|
+
_this.handleVolumeChange = _this.handleVolumeChange.bind(_this);
|
|
264
|
+
_this.handleDurationChange = _this.handleDurationChange.bind(_this);
|
|
265
|
+
_this.handleProgress = (0, _utils.throttle)(_this.handleProgress.bind(_this), 250);
|
|
266
|
+
_this.handleKeypress = _this.handleKeypress.bind(_this);
|
|
267
|
+
_this.audioVisualizer = _this.audioVisualizer.bind(_this);
|
|
268
|
+
_this.checkWatermark = _this.checkWatermark.bind(_this);
|
|
269
|
+
_this.updateSvgSize = _this.updateSvgSize.bind(_this);
|
|
270
|
+
_this.disconnectResizeObserver = _this.disconnectResizeObserver.bind(_this);
|
|
271
|
+
_this.calculateHeightBasedOnResolution = _this.calculateHeightBasedOnResolution.bind(_this);
|
|
273
272
|
return _this;
|
|
274
273
|
}
|
|
275
|
-
|
|
274
|
+
_inherits(Video, _Component);
|
|
275
|
+
return _createClass(Video, [{
|
|
276
276
|
key: "componentDidMount",
|
|
277
277
|
value: function componentDidMount() {
|
|
278
278
|
var _this2 = this;
|
|
@@ -364,8 +364,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
364
364
|
}, {
|
|
365
365
|
key: "checkWatermark",
|
|
366
366
|
value:
|
|
367
|
-
/**
|
|
368
|
-
* This function is triggered on interval to shuffle the position of watermark on Player area
|
|
367
|
+
/**
|
|
368
|
+
* This function is triggered on interval to shuffle the position of watermark on Player area
|
|
369
369
|
*/
|
|
370
370
|
function checkWatermark() {
|
|
371
371
|
var watermark = this.state.watermark;
|
|
@@ -538,9 +538,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
538
538
|
aspectRatio = _this$props8.aspectRatio,
|
|
539
539
|
width = _this$props8.width,
|
|
540
540
|
height = _this$props8.height;
|
|
541
|
-
/*
|
|
542
|
-
* The aspect ratio is either used directly
|
|
543
|
-
* or to calculate width and height.
|
|
541
|
+
/*
|
|
542
|
+
* The aspect ratio is either used directly
|
|
543
|
+
* or to calculate width and height.
|
|
544
544
|
*/
|
|
545
545
|
if (player.videoWidth) {
|
|
546
546
|
// Otherwise try to get the aspect ratio from the video metadata
|
|
@@ -595,9 +595,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
595
595
|
return this.video.playbackRate;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
/*
|
|
599
|
-
* set playback rate
|
|
600
|
-
* speed of video
|
|
598
|
+
/*
|
|
599
|
+
* set playback rate
|
|
600
|
+
* speed of video
|
|
601
601
|
*/,
|
|
602
602
|
set: function set(rate) {
|
|
603
603
|
this.video.playbackRate = rate;
|
|
@@ -813,9 +813,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
813
813
|
actions.toggleFullscreen(player);
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
/*
|
|
817
|
-
* Fired when the user agent
|
|
818
|
-
* begins looking for media data
|
|
816
|
+
/*
|
|
817
|
+
* Fired when the user agent
|
|
818
|
+
* begins looking for media data
|
|
819
819
|
*/
|
|
820
820
|
}, {
|
|
821
821
|
key: "handleLoadStart",
|
|
@@ -833,9 +833,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
/*
|
|
837
|
-
* A handler for events that
|
|
838
|
-
* signal that waiting has ended
|
|
836
|
+
/*
|
|
837
|
+
* A handler for events that
|
|
838
|
+
* signal that waiting has ended
|
|
839
839
|
*/
|
|
840
840
|
}, {
|
|
841
841
|
key: "handleCanPlay",
|
|
@@ -849,9 +849,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
/*
|
|
853
|
-
* A handler for events that
|
|
854
|
-
* signal that waiting has ended
|
|
852
|
+
/*
|
|
853
|
+
* A handler for events that
|
|
854
|
+
* signal that waiting has ended
|
|
855
855
|
*/
|
|
856
856
|
}, {
|
|
857
857
|
key: "handleCanPlayThrough",
|
|
@@ -865,9 +865,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
/*
|
|
869
|
-
* A handler for events that
|
|
870
|
-
* signal that waiting has ended
|
|
868
|
+
/*
|
|
869
|
+
* A handler for events that
|
|
870
|
+
* signal that waiting has ended
|
|
871
871
|
*/
|
|
872
872
|
}, {
|
|
873
873
|
key: "handlePlaying",
|
|
@@ -907,9 +907,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
|
|
910
|
-
/*
|
|
911
|
-
* Fired when the duration of
|
|
912
|
-
* the media resource is first known or changed
|
|
910
|
+
/*
|
|
911
|
+
* Fired when the duration of
|
|
912
|
+
* the media resource is first known or changed
|
|
913
913
|
*/
|
|
914
914
|
}, {
|
|
915
915
|
key: "handleDurationChange",
|
|
@@ -923,9 +923,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
/*
|
|
927
|
-
* Fired while the user agent
|
|
928
|
-
* is downloading media data
|
|
926
|
+
/*
|
|
927
|
+
* Fired while the user agent
|
|
928
|
+
* is downloading media data
|
|
929
929
|
*/
|
|
930
930
|
}, {
|
|
931
931
|
key: "handleProgress",
|
|
@@ -992,9 +992,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
|
|
995
|
-
/*
|
|
996
|
-
* Fired when the end of the media resource
|
|
997
|
-
* is reached (currentTime == duration)
|
|
995
|
+
/*
|
|
996
|
+
* Fired when the end of the media resource
|
|
997
|
+
* is reached (currentTime == duration)
|
|
998
998
|
*/
|
|
999
999
|
}, {
|
|
1000
1000
|
key: "handleEnded",
|
|
@@ -1029,9 +1029,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
|
-
/*
|
|
1033
|
-
* Fired whenever the player
|
|
1034
|
-
* is jumping to a new time
|
|
1032
|
+
/*
|
|
1033
|
+
* Fired whenever the player
|
|
1034
|
+
* is jumping to a new time
|
|
1035
1035
|
*/
|
|
1036
1036
|
}, {
|
|
1037
1037
|
key: "handleSeeking",
|
|
@@ -1045,9 +1045,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
/*
|
|
1049
|
-
* Fired when the player has
|
|
1050
|
-
* finished jumping to a new time
|
|
1048
|
+
/*
|
|
1049
|
+
* Fired when the player has
|
|
1050
|
+
* finished jumping to a new time
|
|
1051
1051
|
*/
|
|
1052
1052
|
}, {
|
|
1053
1053
|
key: "handleSeeked",
|
|
@@ -1066,9 +1066,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1066
1066
|
key: "handleFullscreenChange",
|
|
1067
1067
|
value: function handleFullscreenChange() {}
|
|
1068
1068
|
|
|
1069
|
-
/*
|
|
1070
|
-
* Fires when the browser is
|
|
1071
|
-
* intentionally not getting media data
|
|
1069
|
+
/*
|
|
1070
|
+
* Fires when the browser is
|
|
1071
|
+
* intentionally not getting media data
|
|
1072
1072
|
*/
|
|
1073
1073
|
}, {
|
|
1074
1074
|
key: "handleSuspend",
|
|
@@ -1108,9 +1108,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
/*
|
|
1112
|
-
* Fires when the browser is trying to
|
|
1113
|
-
* get media data, but data is not available
|
|
1111
|
+
/*
|
|
1112
|
+
* Fires when the browser is trying to
|
|
1113
|
+
* get media data, but data is not available
|
|
1114
1114
|
*/
|
|
1115
1115
|
}, {
|
|
1116
1116
|
key: "handleStalled",
|
|
@@ -1124,9 +1124,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
|
-
/*
|
|
1128
|
-
* Fires when the browser has loaded
|
|
1129
|
-
* meta data for the audio/video
|
|
1127
|
+
/*
|
|
1128
|
+
* Fires when the browser has loaded
|
|
1129
|
+
* meta data for the audio/video
|
|
1130
1130
|
*/
|
|
1131
1131
|
}, {
|
|
1132
1132
|
key: "handleLoadedMetaData",
|
|
@@ -1144,9 +1144,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
-
/*
|
|
1148
|
-
* Fires when the browser has loaded
|
|
1149
|
-
* the current frame of the audio/video
|
|
1147
|
+
/*
|
|
1148
|
+
* Fires when the browser has loaded
|
|
1149
|
+
* the current frame of the audio/video
|
|
1150
1150
|
*/
|
|
1151
1151
|
}, {
|
|
1152
1152
|
key: "handleLoadedData",
|
|
@@ -1160,9 +1160,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
|
-
/*
|
|
1164
|
-
* Fires when the current
|
|
1165
|
-
* playback position has changed
|
|
1163
|
+
/*
|
|
1164
|
+
* Fires when the current
|
|
1165
|
+
* playback position has changed
|
|
1166
1166
|
*/
|
|
1167
1167
|
}, {
|
|
1168
1168
|
key: "handleTimeUpdate",
|
|
@@ -1193,8 +1193,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1193
1193
|
this.displaySubtitle();
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
|
-
/**
|
|
1197
|
-
* Fires when the playing speed of the audio/video is changed
|
|
1196
|
+
/**
|
|
1197
|
+
* Fires when the playing speed of the audio/video is changed
|
|
1198
1198
|
*/
|
|
1199
1199
|
}, {
|
|
1200
1200
|
key: "handleRateChange",
|
|
@@ -1221,9 +1221,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
|
|
1224
|
-
/*
|
|
1225
|
-
* Fires when an error occurred
|
|
1226
|
-
* during the loading of an audio/video
|
|
1224
|
+
/*
|
|
1225
|
+
* Fires when an error occurred
|
|
1226
|
+
* during the loading of an audio/video
|
|
1227
1227
|
*/
|
|
1228
1228
|
}, {
|
|
1229
1229
|
key: "handleError",
|
|
@@ -1342,10 +1342,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1342
1342
|
for (var i = 0; i < bufferLength; i++) {
|
|
1343
1343
|
barHeight = dataArray[i] * 2;
|
|
1344
1344
|
|
|
1345
|
-
/*
|
|
1346
|
-
* var r = barHeight + (25 * (i / bufferLength));
|
|
1347
|
-
* var g = 250 * (i / bufferLength);
|
|
1348
|
-
* var b = s50;
|
|
1345
|
+
/*
|
|
1346
|
+
* var r = barHeight + (25 * (i / bufferLength));
|
|
1347
|
+
* var g = 250 * (i / bufferLength);
|
|
1348
|
+
* var b = s50;
|
|
1349
1349
|
*/
|
|
1350
1350
|
|
|
1351
1351
|
ctx.fillStyle = '#0c141d'; // 'rgb(' + r + ',' + g + ',' + b + ')';
|
|
@@ -1690,7 +1690,6 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1690
1690
|
}) || null)));
|
|
1691
1691
|
}
|
|
1692
1692
|
}]);
|
|
1693
|
-
return Video;
|
|
1694
1693
|
}(_react.Component);
|
|
1695
1694
|
Video.propTypes = propTypes;
|
|
1696
1695
|
Video.defaultProps = defaultProps;
|
|
@@ -11,22 +11,22 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
var _Menu = _interopRequireDefault(require("../Menu"));
|
|
12
12
|
var _tokens = require("@desynova-digital/tokens");
|
|
13
13
|
var _templateObject;
|
|
14
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
-
function _classCallCheck(
|
|
18
|
-
function _defineProperties(
|
|
19
|
-
function _createClass(
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
17
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
19
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
21
|
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); }
|
|
22
22
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23
|
-
function _possibleConstructorReturn(
|
|
24
|
-
function _assertThisInitialized(
|
|
23
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
24
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
25
25
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
-
function _getPrototypeOf(
|
|
27
|
-
function _inherits(
|
|
28
|
-
function _setPrototypeOf(
|
|
29
|
-
function _taggedTemplateLiteral(
|
|
26
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
27
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
28
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
29
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
30
30
|
var propTypes = {
|
|
31
31
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
32
32
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
@@ -36,12 +36,12 @@ var AudioTrackBlock = (0, _styledComponents["default"])('div')(_templateObject |
|
|
|
36
36
|
return props.theme ? " ".concat(_tokens.colors[props.theme].videoPlayer.rgbaThemeColor) : 'rgba(0, 206, 198, 0.1)';
|
|
37
37
|
});
|
|
38
38
|
var AudioTracksMenuButton = /*#__PURE__*/function (_Component) {
|
|
39
|
-
_inherits(AudioTracksMenuButton, _Component);
|
|
40
39
|
function AudioTracksMenuButton(props, context) {
|
|
41
40
|
_classCallCheck(this, AudioTracksMenuButton);
|
|
42
41
|
return _callSuper(this, AudioTracksMenuButton, [props, context]);
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
_inherits(AudioTracksMenuButton, _Component);
|
|
44
|
+
return _createClass(AudioTracksMenuButton, [{
|
|
45
45
|
key: "changeTrack",
|
|
46
46
|
value: function changeTrack(track) {
|
|
47
47
|
var actions = this.props.actions;
|
|
@@ -88,7 +88,6 @@ var AudioTracksMenuButton = /*#__PURE__*/function (_Component) {
|
|
|
88
88
|
}))) : null);
|
|
89
89
|
}
|
|
90
90
|
}]);
|
|
91
|
-
return AudioTracksMenuButton;
|
|
92
91
|
}(_react.Component);
|
|
93
92
|
AudioTracksMenuButton.propTypes = propTypes;
|
|
94
93
|
AudioTracksMenuButton.displayName = 'AudioTracksMenuButton';
|
|
@@ -11,22 +11,22 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
var _components = require("@desynova-digital/components");
|
|
12
12
|
var _utils = require("../../utils");
|
|
13
13
|
var _templateObject;
|
|
14
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
17
|
-
function _classCallCheck(
|
|
18
|
-
function _defineProperties(
|
|
19
|
-
function _createClass(
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
17
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
19
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
21
|
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); }
|
|
22
22
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23
|
-
function _possibleConstructorReturn(
|
|
23
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
24
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
24
25
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(
|
|
26
|
-
function
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
26
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
27
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
28
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
29
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
30
30
|
var CameraButtonIcon = (0, _styledComponents["default"])(_components.Button)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: transparent;\n border: none;\n margin: 0px;\n margin-right: 10px;\n &:hover,\n &:focus {\n background: transparent;\n }\n"])));
|
|
31
31
|
var propTypes = {
|
|
32
32
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
@@ -34,15 +34,15 @@ var propTypes = {
|
|
|
34
34
|
handleClick: _propTypes.PropTypes.func
|
|
35
35
|
};
|
|
36
36
|
var CameraButton = /*#__PURE__*/function (_Component) {
|
|
37
|
-
_inherits(CameraButton, _Component);
|
|
38
37
|
function CameraButton(props, context) {
|
|
39
38
|
var _this;
|
|
40
39
|
_classCallCheck(this, CameraButton);
|
|
41
40
|
_this = _callSuper(this, CameraButton, [props, context]);
|
|
42
|
-
_this.handleClick = _this.handleClick.bind(
|
|
41
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
43
42
|
return _this;
|
|
44
43
|
}
|
|
45
|
-
|
|
44
|
+
_inherits(CameraButton, _Component);
|
|
45
|
+
return _createClass(CameraButton, [{
|
|
46
46
|
key: "handleClick",
|
|
47
47
|
value: function handleClick() {
|
|
48
48
|
var _this$props = this.props,
|
|
@@ -77,6 +77,5 @@ var CameraButton = /*#__PURE__*/function (_Component) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}]);
|
|
80
|
-
return CameraButton;
|
|
81
80
|
}(_react.Component);
|
|
82
81
|
var _default = exports["default"] = CameraButton;
|