@desynova-digital/player 4.0.79 → 4.0.81
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 -8
- package/actions/player.js +1 -1
- package/components/AudioMeter.js +28 -27
- package/components/BigPlayButton.js +17 -16
- package/components/ImageViewer.js +17 -16
- package/components/MarkerBar.js +17 -16
- package/components/Menu.js +2 -2
- package/components/Player.js +46 -45
- package/components/PlayerHeader.js +24 -23
- package/components/Playlist.js +15 -14
- package/components/PointersBar.js +20 -19
- package/components/PosterImage.js +1 -1
- package/components/SDOutline.js +2 -2
- package/components/Shortcut.js +76 -73
- package/components/Slider.js +33 -33
- package/components/TagsBar.js +16 -15
- package/components/Video.js +120 -119
- package/components/control-bar/AudioTracksMenuButton.js +15 -14
- package/components/control-bar/CameraButton.js +16 -15
- package/components/control-bar/CaptionControlMenuButton.js +20 -19
- package/components/control-bar/CommentsButton.js +17 -16
- package/components/control-bar/ControlBar.js +18 -17
- package/components/control-bar/EditorControlMenuButton.js +17 -16
- package/components/control-bar/ForwardControl.js +1 -1
- package/components/control-bar/ForwardReplayControl.js +16 -15
- package/components/control-bar/FullscreenToggle.js +16 -15
- package/components/control-bar/PlayToggle.js +16 -15
- package/components/control-bar/ReplayControl.js +1 -1
- package/components/control-bar/SettingsMenuButton.js +4 -4
- package/components/control-bar/SubtitleLanguagesMenuButton.js +15 -14
- package/components/control-bar/SubtitleMovementMenu.js +17 -16
- package/components/control-bar/VolumeMenuButton.js +17 -16
- package/components/control-bar/ZoomMenuButton.js +17 -16
- package/components/marking-controls/MarkInControl.js +19 -17
- package/components/marking-controls/MarkOutControl.js +16 -15
- package/components/marking-controls/MarkingAddButton.js +16 -15
- package/components/marking-controls/MarkingControl.js +2 -2
- package/components/marking-controls/MarkingDeleteButton.js +16 -15
- package/components/marking-controls/MarkingDuration.js +2 -2
- package/components/marking-controls/MarkingPreview.js +16 -15
- package/components/marking-controls/TimecodeFormatSelector.js +7 -7
- package/components/progress-bar/AudioWaveform.js +16 -15
- 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 +20 -19
- package/components/progress-bar/SeekBar.js +28 -27
- package/components/progress-bar/Timeline.js +15 -14
- package/components/settings-menu-control/CameraControl.js +3 -3
- package/components/settings-menu-control/ChildMenuComponent.js +29 -28
- package/components/settings-menu-control/ParentMenuComponent.js +18 -17
- package/components/settings-menu-control/PlaybackRateControl.js +16 -15
- package/components/settings-menu-control/SafeAreaControl.js +16 -15
- 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 +25 -24
- package/components/volume-control/VolumeControl.js +1 -1
- package/components/volume-control/VolumeLevel.js +2 -2
- package/components/zoom-control/ZoomBar.js +24 -23
- 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 +6 -5
- 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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 && Object.prototype.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() {
|
|
26
|
-
function _slicedToArray(
|
|
25
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(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); }
|
|
29
|
+
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; }
|
|
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(arr) { if (Array.isArray(arr)) return arr; }
|
|
32
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
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(
|
|
37
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
38
37
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39
|
-
function _getPrototypeOf(
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
function
|
|
43
|
-
function
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
40
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
41
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
42
|
+
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; }
|
|
43
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
46
46
|
var propTypes = {
|
|
47
47
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
48
48
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
@@ -113,11 +113,12 @@ var VideoBlock = _styledComponents["default"].div(_templateObject2 || (_template
|
|
|
113
113
|
return props.HDBorder ? '"16:9 Safe Area"' : '';
|
|
114
114
|
});
|
|
115
115
|
var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
116
|
+
_inherits(Video, _Component);
|
|
116
117
|
function Video(props) {
|
|
117
118
|
var _this;
|
|
118
119
|
_classCallCheck(this, Video);
|
|
119
120
|
_this = _callSuper(this, Video, [props]);
|
|
120
|
-
_defineProperty(_this, "updateAnnotateVisibility", function () {
|
|
121
|
+
_defineProperty(_assertThisInitialized(_this), "updateAnnotateVisibility", function () {
|
|
121
122
|
if (!_this.video) return;
|
|
122
123
|
var _this$props = _this.props,
|
|
123
124
|
initialTime = _this$props.initialTime,
|
|
@@ -135,10 +136,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
|
-
_defineProperty(_this, "onVideoTimeUpdate", function () {
|
|
139
|
+
_defineProperty(_assertThisInitialized(_this), "onVideoTimeUpdate", function () {
|
|
139
140
|
_this.updateAnnotateVisibility();
|
|
140
141
|
});
|
|
141
|
-
_defineProperty(_this, "buildSmoothPath", function (points, width, height) {
|
|
142
|
+
_defineProperty(_assertThisInitialized(_this), "buildSmoothPath", function (points, width, height) {
|
|
142
143
|
if (!points || points.length < 2) return '';
|
|
143
144
|
var startX = points[0].x * width;
|
|
144
145
|
var startY = points[0].y * height;
|
|
@@ -157,7 +158,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
157
158
|
path += " L ".concat(lastX, " ").concat(lastY);
|
|
158
159
|
return path;
|
|
159
160
|
});
|
|
160
|
-
_defineProperty(_this, "getTimeData", function (time) {
|
|
161
|
+
_defineProperty(_assertThisInitialized(_this), "getTimeData", function (time) {
|
|
161
162
|
var _this$props2 = _this.props,
|
|
162
163
|
inTime = _this$props2.inTime,
|
|
163
164
|
outTime = _this$props2.outTime,
|
|
@@ -217,46 +218,45 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
217
218
|
};
|
|
218
219
|
_this.video = null; // the html5 video
|
|
219
220
|
_this.manager = new _Manager["default"](props.store);
|
|
220
|
-
_this.getStyle = _this.getStyle.bind(_this);
|
|
221
|
-
_this.getChildren = _this.getChildren.bind(_this);
|
|
222
|
-
_this.play = _this.play.bind(_this);
|
|
223
|
-
_this.pause = _this.pause.bind(_this);
|
|
224
|
-
_this.seek = _this.seek.bind(_this);
|
|
225
|
-
_this.forward = _this.forward.bind(_this);
|
|
226
|
-
_this.replay = _this.replay.bind(_this);
|
|
227
|
-
_this.toggleFullscreen = _this.toggleFullscreen.bind(_this);
|
|
228
|
-
_this.getProperties = _this.getProperties.bind(_this);
|
|
229
|
-
_this.renderChildren = _this.renderChildren.bind(_this);
|
|
230
|
-
_this.handleLoadStart = _this.handleLoadStart.bind(_this);
|
|
231
|
-
_this.handleCanPlay = _this.handleCanPlay.bind(_this);
|
|
232
|
-
_this.handleCanPlayThrough = _this.handleCanPlayThrough.bind(_this);
|
|
233
|
-
_this.handlePlay = _this.handlePlay.bind(_this);
|
|
234
|
-
_this.handlePlaying = _this.handlePlaying.bind(_this);
|
|
235
|
-
_this.handlePause = _this.handlePause.bind(_this);
|
|
236
|
-
_this.handleEnded = _this.handleEnded.bind(_this);
|
|
237
|
-
_this.handleWaiting = _this.handleWaiting.bind(_this);
|
|
238
|
-
_this.handleSeeking = _this.handleSeeking.bind(_this);
|
|
239
|
-
_this.handleSeeked = _this.handleSeeked.bind(_this);
|
|
240
|
-
_this.handleFullscreenChange = _this.handleFullscreenChange.bind(_this);
|
|
241
|
-
_this.handleError = _this.handleError.bind(_this);
|
|
242
|
-
_this.handleSuspend = _this.handleSuspend.bind(_this);
|
|
243
|
-
_this.handleAbort = _this.handleAbort.bind(_this);
|
|
244
|
-
_this.handleEmptied = _this.handleEmptied.bind(_this);
|
|
245
|
-
_this.handleStalled = _this.handleStalled.bind(_this);
|
|
246
|
-
_this.handleLoadedMetaData = _this.handleLoadedMetaData.bind(_this);
|
|
247
|
-
_this.handleLoadedData = _this.handleLoadedData.bind(_this);
|
|
248
|
-
_this.handleTimeUpdate = _this.handleTimeUpdate.bind(_this);
|
|
249
|
-
_this.handleRateChange = _this.handleRateChange.bind(_this);
|
|
250
|
-
_this.handleVolumeChange = _this.handleVolumeChange.bind(_this);
|
|
251
|
-
_this.handleDurationChange = _this.handleDurationChange.bind(_this);
|
|
252
|
-
_this.handleProgress = (0, _utils.throttle)(_this.handleProgress.bind(_this), 250);
|
|
253
|
-
_this.handleKeypress = _this.handleKeypress.bind(_this);
|
|
254
|
-
_this.audioVisualizer = _this.audioVisualizer.bind(_this);
|
|
255
|
-
_this.checkWatermark = _this.checkWatermark.bind(_this);
|
|
221
|
+
_this.getStyle = _this.getStyle.bind(_assertThisInitialized(_this));
|
|
222
|
+
_this.getChildren = _this.getChildren.bind(_assertThisInitialized(_this));
|
|
223
|
+
_this.play = _this.play.bind(_assertThisInitialized(_this));
|
|
224
|
+
_this.pause = _this.pause.bind(_assertThisInitialized(_this));
|
|
225
|
+
_this.seek = _this.seek.bind(_assertThisInitialized(_this));
|
|
226
|
+
_this.forward = _this.forward.bind(_assertThisInitialized(_this));
|
|
227
|
+
_this.replay = _this.replay.bind(_assertThisInitialized(_this));
|
|
228
|
+
_this.toggleFullscreen = _this.toggleFullscreen.bind(_assertThisInitialized(_this));
|
|
229
|
+
_this.getProperties = _this.getProperties.bind(_assertThisInitialized(_this));
|
|
230
|
+
_this.renderChildren = _this.renderChildren.bind(_assertThisInitialized(_this));
|
|
231
|
+
_this.handleLoadStart = _this.handleLoadStart.bind(_assertThisInitialized(_this));
|
|
232
|
+
_this.handleCanPlay = _this.handleCanPlay.bind(_assertThisInitialized(_this));
|
|
233
|
+
_this.handleCanPlayThrough = _this.handleCanPlayThrough.bind(_assertThisInitialized(_this));
|
|
234
|
+
_this.handlePlay = _this.handlePlay.bind(_assertThisInitialized(_this));
|
|
235
|
+
_this.handlePlaying = _this.handlePlaying.bind(_assertThisInitialized(_this));
|
|
236
|
+
_this.handlePause = _this.handlePause.bind(_assertThisInitialized(_this));
|
|
237
|
+
_this.handleEnded = _this.handleEnded.bind(_assertThisInitialized(_this));
|
|
238
|
+
_this.handleWaiting = _this.handleWaiting.bind(_assertThisInitialized(_this));
|
|
239
|
+
_this.handleSeeking = _this.handleSeeking.bind(_assertThisInitialized(_this));
|
|
240
|
+
_this.handleSeeked = _this.handleSeeked.bind(_assertThisInitialized(_this));
|
|
241
|
+
_this.handleFullscreenChange = _this.handleFullscreenChange.bind(_assertThisInitialized(_this));
|
|
242
|
+
_this.handleError = _this.handleError.bind(_assertThisInitialized(_this));
|
|
243
|
+
_this.handleSuspend = _this.handleSuspend.bind(_assertThisInitialized(_this));
|
|
244
|
+
_this.handleAbort = _this.handleAbort.bind(_assertThisInitialized(_this));
|
|
245
|
+
_this.handleEmptied = _this.handleEmptied.bind(_assertThisInitialized(_this));
|
|
246
|
+
_this.handleStalled = _this.handleStalled.bind(_assertThisInitialized(_this));
|
|
247
|
+
_this.handleLoadedMetaData = _this.handleLoadedMetaData.bind(_assertThisInitialized(_this));
|
|
248
|
+
_this.handleLoadedData = _this.handleLoadedData.bind(_assertThisInitialized(_this));
|
|
249
|
+
_this.handleTimeUpdate = _this.handleTimeUpdate.bind(_assertThisInitialized(_this));
|
|
250
|
+
_this.handleRateChange = _this.handleRateChange.bind(_assertThisInitialized(_this));
|
|
251
|
+
_this.handleVolumeChange = _this.handleVolumeChange.bind(_assertThisInitialized(_this));
|
|
252
|
+
_this.handleDurationChange = _this.handleDurationChange.bind(_assertThisInitialized(_this));
|
|
253
|
+
_this.handleProgress = (0, _utils.throttle)(_this.handleProgress.bind(_assertThisInitialized(_this)), 250);
|
|
254
|
+
_this.handleKeypress = _this.handleKeypress.bind(_assertThisInitialized(_this));
|
|
255
|
+
_this.audioVisualizer = _this.audioVisualizer.bind(_assertThisInitialized(_this));
|
|
256
|
+
_this.checkWatermark = _this.checkWatermark.bind(_assertThisInitialized(_this));
|
|
256
257
|
return _this;
|
|
257
258
|
}
|
|
258
|
-
|
|
259
|
-
return _createClass(Video, [{
|
|
259
|
+
_createClass(Video, [{
|
|
260
260
|
key: "componentDidMount",
|
|
261
261
|
value: function componentDidMount() {
|
|
262
262
|
var src = this.props.src;
|
|
@@ -325,8 +325,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
325
325
|
}, {
|
|
326
326
|
key: "checkWatermark",
|
|
327
327
|
value:
|
|
328
|
-
/**
|
|
329
|
-
* This function is triggered on interval to shuffle the position of watermark on Player area
|
|
328
|
+
/**
|
|
329
|
+
* This function is triggered on interval to shuffle the position of watermark on Player area
|
|
330
330
|
*/
|
|
331
331
|
function checkWatermark() {
|
|
332
332
|
var watermark = this.state.watermark;
|
|
@@ -497,9 +497,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
497
497
|
aspectRatio = _this$props6.aspectRatio,
|
|
498
498
|
width = _this$props6.width,
|
|
499
499
|
height = _this$props6.height;
|
|
500
|
-
/*
|
|
501
|
-
* The aspect ratio is either used directly
|
|
502
|
-
* or to calculate width and height.
|
|
500
|
+
/*
|
|
501
|
+
* The aspect ratio is either used directly
|
|
502
|
+
* or to calculate width and height.
|
|
503
503
|
*/
|
|
504
504
|
if (player.videoWidth) {
|
|
505
505
|
// Otherwise try to get the aspect ratio from the video metadata
|
|
@@ -553,9 +553,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
553
553
|
return this.video.playbackRate;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
/*
|
|
557
|
-
* set playback rate
|
|
558
|
-
* speed of video
|
|
556
|
+
/*
|
|
557
|
+
* set playback rate
|
|
558
|
+
* speed of video
|
|
559
559
|
*/,
|
|
560
560
|
set: function set(rate) {
|
|
561
561
|
this.video.playbackRate = rate;
|
|
@@ -771,9 +771,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
771
771
|
actions.toggleFullscreen(player);
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
-
/*
|
|
775
|
-
* Fired when the user agent
|
|
776
|
-
* begins looking for media data
|
|
774
|
+
/*
|
|
775
|
+
* Fired when the user agent
|
|
776
|
+
* begins looking for media data
|
|
777
777
|
*/
|
|
778
778
|
}, {
|
|
779
779
|
key: "handleLoadStart",
|
|
@@ -791,9 +791,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
-
/*
|
|
795
|
-
* A handler for events that
|
|
796
|
-
* signal that waiting has ended
|
|
794
|
+
/*
|
|
795
|
+
* A handler for events that
|
|
796
|
+
* signal that waiting has ended
|
|
797
797
|
*/
|
|
798
798
|
}, {
|
|
799
799
|
key: "handleCanPlay",
|
|
@@ -807,9 +807,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
/*
|
|
811
|
-
* A handler for events that
|
|
812
|
-
* signal that waiting has ended
|
|
810
|
+
/*
|
|
811
|
+
* A handler for events that
|
|
812
|
+
* signal that waiting has ended
|
|
813
813
|
*/
|
|
814
814
|
}, {
|
|
815
815
|
key: "handleCanPlayThrough",
|
|
@@ -823,9 +823,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
-
/*
|
|
827
|
-
* A handler for events that
|
|
828
|
-
* signal that waiting has ended
|
|
826
|
+
/*
|
|
827
|
+
* A handler for events that
|
|
828
|
+
* signal that waiting has ended
|
|
829
829
|
*/
|
|
830
830
|
}, {
|
|
831
831
|
key: "handlePlaying",
|
|
@@ -865,9 +865,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
/*
|
|
869
|
-
* Fired when the duration of
|
|
870
|
-
* the media resource is first known or changed
|
|
868
|
+
/*
|
|
869
|
+
* Fired when the duration of
|
|
870
|
+
* the media resource is first known or changed
|
|
871
871
|
*/
|
|
872
872
|
}, {
|
|
873
873
|
key: "handleDurationChange",
|
|
@@ -881,9 +881,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
|
|
884
|
-
/*
|
|
885
|
-
* Fired while the user agent
|
|
886
|
-
* is downloading media data
|
|
884
|
+
/*
|
|
885
|
+
* Fired while the user agent
|
|
886
|
+
* is downloading media data
|
|
887
887
|
*/
|
|
888
888
|
}, {
|
|
889
889
|
key: "handleProgress",
|
|
@@ -950,9 +950,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
/*
|
|
954
|
-
* Fired when the end of the media resource
|
|
955
|
-
* is reached (currentTime == duration)
|
|
953
|
+
/*
|
|
954
|
+
* Fired when the end of the media resource
|
|
955
|
+
* is reached (currentTime == duration)
|
|
956
956
|
*/
|
|
957
957
|
}, {
|
|
958
958
|
key: "handleEnded",
|
|
@@ -987,9 +987,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
/*
|
|
991
|
-
* Fired whenever the player
|
|
992
|
-
* is jumping to a new time
|
|
990
|
+
/*
|
|
991
|
+
* Fired whenever the player
|
|
992
|
+
* is jumping to a new time
|
|
993
993
|
*/
|
|
994
994
|
}, {
|
|
995
995
|
key: "handleSeeking",
|
|
@@ -1003,9 +1003,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
/*
|
|
1007
|
-
* Fired when the player has
|
|
1008
|
-
* finished jumping to a new time
|
|
1006
|
+
/*
|
|
1007
|
+
* Fired when the player has
|
|
1008
|
+
* finished jumping to a new time
|
|
1009
1009
|
*/
|
|
1010
1010
|
}, {
|
|
1011
1011
|
key: "handleSeeked",
|
|
@@ -1024,9 +1024,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1024
1024
|
key: "handleFullscreenChange",
|
|
1025
1025
|
value: function handleFullscreenChange() {}
|
|
1026
1026
|
|
|
1027
|
-
/*
|
|
1028
|
-
* Fires when the browser is
|
|
1029
|
-
* intentionally not getting media data
|
|
1027
|
+
/*
|
|
1028
|
+
* Fires when the browser is
|
|
1029
|
+
* intentionally not getting media data
|
|
1030
1030
|
*/
|
|
1031
1031
|
}, {
|
|
1032
1032
|
key: "handleSuspend",
|
|
@@ -1066,9 +1066,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
/*
|
|
1070
|
-
* Fires when the browser is trying to
|
|
1071
|
-
* get media data, but data is not available
|
|
1069
|
+
/*
|
|
1070
|
+
* Fires when the browser is trying to
|
|
1071
|
+
* get media data, but data is not available
|
|
1072
1072
|
*/
|
|
1073
1073
|
}, {
|
|
1074
1074
|
key: "handleStalled",
|
|
@@ -1082,9 +1082,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
|
-
/*
|
|
1086
|
-
* Fires when the browser has loaded
|
|
1087
|
-
* meta data for the audio/video
|
|
1085
|
+
/*
|
|
1086
|
+
* Fires when the browser has loaded
|
|
1087
|
+
* meta data for the audio/video
|
|
1088
1088
|
*/
|
|
1089
1089
|
}, {
|
|
1090
1090
|
key: "handleLoadedMetaData",
|
|
@@ -1102,9 +1102,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
|
-
/*
|
|
1106
|
-
* Fires when the browser has loaded
|
|
1107
|
-
* the current frame of the audio/video
|
|
1105
|
+
/*
|
|
1106
|
+
* Fires when the browser has loaded
|
|
1107
|
+
* the current frame of the audio/video
|
|
1108
1108
|
*/
|
|
1109
1109
|
}, {
|
|
1110
1110
|
key: "handleLoadedData",
|
|
@@ -1118,9 +1118,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
-
/*
|
|
1122
|
-
* Fires when the current
|
|
1123
|
-
* playback position has changed
|
|
1121
|
+
/*
|
|
1122
|
+
* Fires when the current
|
|
1123
|
+
* playback position has changed
|
|
1124
1124
|
*/
|
|
1125
1125
|
}, {
|
|
1126
1126
|
key: "handleTimeUpdate",
|
|
@@ -1151,8 +1151,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1151
1151
|
this.displaySubtitle();
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
/**
|
|
1155
|
-
* Fires when the playing speed of the audio/video is changed
|
|
1154
|
+
/**
|
|
1155
|
+
* Fires when the playing speed of the audio/video is changed
|
|
1156
1156
|
*/
|
|
1157
1157
|
}, {
|
|
1158
1158
|
key: "handleRateChange",
|
|
@@ -1179,9 +1179,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
|
-
/*
|
|
1183
|
-
* Fires when an error occurred
|
|
1184
|
-
* during the loading of an audio/video
|
|
1182
|
+
/*
|
|
1183
|
+
* Fires when an error occurred
|
|
1184
|
+
* during the loading of an audio/video
|
|
1185
1185
|
*/
|
|
1186
1186
|
}, {
|
|
1187
1187
|
key: "handleError",
|
|
@@ -1232,10 +1232,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1232
1232
|
for (var i = 0; i < bufferLength; i++) {
|
|
1233
1233
|
barHeight = dataArray[i] * 2;
|
|
1234
1234
|
|
|
1235
|
-
/*
|
|
1236
|
-
* var r = barHeight + (25 * (i / bufferLength));
|
|
1237
|
-
* var g = 250 * (i / bufferLength);
|
|
1238
|
-
* var b = s50;
|
|
1235
|
+
/*
|
|
1236
|
+
* var r = barHeight + (25 * (i / bufferLength));
|
|
1237
|
+
* var g = 250 * (i / bufferLength);
|
|
1238
|
+
* var b = s50;
|
|
1239
1239
|
*/
|
|
1240
1240
|
|
|
1241
1241
|
ctx.fillStyle = '#0c141d'; // 'rgb(' + r + ',' + g + ',' + b + ')';
|
|
@@ -1576,6 +1576,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1576
1576
|
}) || null)));
|
|
1577
1577
|
}
|
|
1578
1578
|
}]);
|
|
1579
|
+
return Video;
|
|
1579
1580
|
}(_react.Component);
|
|
1580
1581
|
Video.propTypes = propTypes;
|
|
1581
1582
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 : 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 && Object.prototype.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(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
24
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
27
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
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);
|
|
39
40
|
function AudioTracksMenuButton(props, context) {
|
|
40
41
|
_classCallCheck(this, AudioTracksMenuButton);
|
|
41
42
|
return _callSuper(this, AudioTracksMenuButton, [props, context]);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
return _createClass(AudioTracksMenuButton, [{
|
|
44
|
+
_createClass(AudioTracksMenuButton, [{
|
|
45
45
|
key: "changeTrack",
|
|
46
46
|
value: function changeTrack(track) {
|
|
47
47
|
var actions = this.props.actions;
|
|
@@ -88,6 +88,7 @@ var AudioTracksMenuButton = /*#__PURE__*/function (_Component) {
|
|
|
88
88
|
}))) : null);
|
|
89
89
|
}
|
|
90
90
|
}]);
|
|
91
|
+
return AudioTracksMenuButton;
|
|
91
92
|
}(_react.Component);
|
|
92
93
|
AudioTracksMenuButton.propTypes = propTypes;
|
|
93
94
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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 : 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 && Object.prototype.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(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
23
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
25
24
|
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
|
|
28
|
-
function
|
|
29
|
-
function
|
|
25
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
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);
|
|
37
38
|
function CameraButton(props, context) {
|
|
38
39
|
var _this;
|
|
39
40
|
_classCallCheck(this, CameraButton);
|
|
40
41
|
_this = _callSuper(this, CameraButton, [props, context]);
|
|
41
|
-
_this.handleClick = _this.handleClick.bind(_this);
|
|
42
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
42
43
|
return _this;
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
return _createClass(CameraButton, [{
|
|
45
|
+
_createClass(CameraButton, [{
|
|
46
46
|
key: "handleClick",
|
|
47
47
|
value: function handleClick() {
|
|
48
48
|
var _this$props = this.props,
|
|
@@ -72,5 +72,6 @@ var CameraButton = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
}]);
|
|
75
|
+
return CameraButton;
|
|
75
76
|
}(_react.Component);
|
|
76
77
|
var _default = exports["default"] = CameraButton;
|