@desynova-digital/player 4.0.63 → 4.0.64
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 +27 -28
- 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 +45 -46
- package/components/PlayerHeader.js +23 -24
- package/components/Playlist.js +14 -15
- package/components/PointersBar.js +19 -20
- package/components/PosterImage.js +1 -1
- package/components/SDOutline.js +2 -2
- package/components/Shortcut.js +69 -70
- package/components/Slider.js +33 -33
- package/components/TagsBar.js +15 -16
- package/components/Video.js +119 -122
- 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 +17 -18
- 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 +19 -20
- package/components/progress-bar/SeekBar.js +27 -28
- 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),
|
|
@@ -111,12 +111,11 @@ var VideoBlock = _styledComponents["default"].div(_templateObject2 || (_template
|
|
|
111
111
|
return props.HDBorder ? '"16:9 Safe Area"' : '';
|
|
112
112
|
});
|
|
113
113
|
var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
114
|
-
_inherits(Video, _Component);
|
|
115
114
|
function Video(props) {
|
|
116
115
|
var _this;
|
|
117
116
|
_classCallCheck(this, Video);
|
|
118
117
|
_this = _callSuper(this, Video, [props]);
|
|
119
|
-
_defineProperty(
|
|
118
|
+
_defineProperty(_this, "buildSmoothPath", function (points) {
|
|
120
119
|
if (!points || points.length < 2) return '';
|
|
121
120
|
var path = "M ".concat(points[0].x, " ").concat(points[0].y);
|
|
122
121
|
for (var i = 1; i < points.length - 1; i++) {
|
|
@@ -128,7 +127,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
128
127
|
path += " L ".concat(last.x, " ").concat(last.y);
|
|
129
128
|
return path;
|
|
130
129
|
});
|
|
131
|
-
_defineProperty(
|
|
130
|
+
_defineProperty(_this, "getTimeData", function (time) {
|
|
132
131
|
var _this$props = _this.props,
|
|
133
132
|
inTime = _this$props.inTime,
|
|
134
133
|
outTime = _this$props.outTime,
|
|
@@ -187,45 +186,46 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
187
186
|
};
|
|
188
187
|
_this.video = null; // the html5 video
|
|
189
188
|
_this.manager = new _Manager["default"](props.store);
|
|
190
|
-
_this.getStyle = _this.getStyle.bind(
|
|
191
|
-
_this.getChildren = _this.getChildren.bind(
|
|
192
|
-
_this.play = _this.play.bind(
|
|
193
|
-
_this.pause = _this.pause.bind(
|
|
194
|
-
_this.seek = _this.seek.bind(
|
|
195
|
-
_this.forward = _this.forward.bind(
|
|
196
|
-
_this.replay = _this.replay.bind(
|
|
197
|
-
_this.toggleFullscreen = _this.toggleFullscreen.bind(
|
|
198
|
-
_this.getProperties = _this.getProperties.bind(
|
|
199
|
-
_this.renderChildren = _this.renderChildren.bind(
|
|
200
|
-
_this.handleLoadStart = _this.handleLoadStart.bind(
|
|
201
|
-
_this.handleCanPlay = _this.handleCanPlay.bind(
|
|
202
|
-
_this.handleCanPlayThrough = _this.handleCanPlayThrough.bind(
|
|
203
|
-
_this.handlePlay = _this.handlePlay.bind(
|
|
204
|
-
_this.handlePlaying = _this.handlePlaying.bind(
|
|
205
|
-
_this.handlePause = _this.handlePause.bind(
|
|
206
|
-
_this.handleEnded = _this.handleEnded.bind(
|
|
207
|
-
_this.handleWaiting = _this.handleWaiting.bind(
|
|
208
|
-
_this.handleSeeking = _this.handleSeeking.bind(
|
|
209
|
-
_this.handleSeeked = _this.handleSeeked.bind(
|
|
210
|
-
_this.handleFullscreenChange = _this.handleFullscreenChange.bind(
|
|
211
|
-
_this.handleError = _this.handleError.bind(
|
|
212
|
-
_this.handleSuspend = _this.handleSuspend.bind(
|
|
213
|
-
_this.handleAbort = _this.handleAbort.bind(
|
|
214
|
-
_this.handleEmptied = _this.handleEmptied.bind(
|
|
215
|
-
_this.handleStalled = _this.handleStalled.bind(
|
|
216
|
-
_this.handleLoadedMetaData = _this.handleLoadedMetaData.bind(
|
|
217
|
-
_this.handleLoadedData = _this.handleLoadedData.bind(
|
|
218
|
-
_this.handleTimeUpdate = _this.handleTimeUpdate.bind(
|
|
219
|
-
_this.handleRateChange = _this.handleRateChange.bind(
|
|
220
|
-
_this.handleVolumeChange = _this.handleVolumeChange.bind(
|
|
221
|
-
_this.handleDurationChange = _this.handleDurationChange.bind(
|
|
222
|
-
_this.handleProgress = (0, _utils.throttle)(_this.handleProgress.bind(
|
|
223
|
-
_this.handleKeypress = _this.handleKeypress.bind(
|
|
224
|
-
_this.audioVisualizer = _this.audioVisualizer.bind(
|
|
225
|
-
_this.checkWatermark = _this.checkWatermark.bind(
|
|
189
|
+
_this.getStyle = _this.getStyle.bind(_this);
|
|
190
|
+
_this.getChildren = _this.getChildren.bind(_this);
|
|
191
|
+
_this.play = _this.play.bind(_this);
|
|
192
|
+
_this.pause = _this.pause.bind(_this);
|
|
193
|
+
_this.seek = _this.seek.bind(_this);
|
|
194
|
+
_this.forward = _this.forward.bind(_this);
|
|
195
|
+
_this.replay = _this.replay.bind(_this);
|
|
196
|
+
_this.toggleFullscreen = _this.toggleFullscreen.bind(_this);
|
|
197
|
+
_this.getProperties = _this.getProperties.bind(_this);
|
|
198
|
+
_this.renderChildren = _this.renderChildren.bind(_this);
|
|
199
|
+
_this.handleLoadStart = _this.handleLoadStart.bind(_this);
|
|
200
|
+
_this.handleCanPlay = _this.handleCanPlay.bind(_this);
|
|
201
|
+
_this.handleCanPlayThrough = _this.handleCanPlayThrough.bind(_this);
|
|
202
|
+
_this.handlePlay = _this.handlePlay.bind(_this);
|
|
203
|
+
_this.handlePlaying = _this.handlePlaying.bind(_this);
|
|
204
|
+
_this.handlePause = _this.handlePause.bind(_this);
|
|
205
|
+
_this.handleEnded = _this.handleEnded.bind(_this);
|
|
206
|
+
_this.handleWaiting = _this.handleWaiting.bind(_this);
|
|
207
|
+
_this.handleSeeking = _this.handleSeeking.bind(_this);
|
|
208
|
+
_this.handleSeeked = _this.handleSeeked.bind(_this);
|
|
209
|
+
_this.handleFullscreenChange = _this.handleFullscreenChange.bind(_this);
|
|
210
|
+
_this.handleError = _this.handleError.bind(_this);
|
|
211
|
+
_this.handleSuspend = _this.handleSuspend.bind(_this);
|
|
212
|
+
_this.handleAbort = _this.handleAbort.bind(_this);
|
|
213
|
+
_this.handleEmptied = _this.handleEmptied.bind(_this);
|
|
214
|
+
_this.handleStalled = _this.handleStalled.bind(_this);
|
|
215
|
+
_this.handleLoadedMetaData = _this.handleLoadedMetaData.bind(_this);
|
|
216
|
+
_this.handleLoadedData = _this.handleLoadedData.bind(_this);
|
|
217
|
+
_this.handleTimeUpdate = _this.handleTimeUpdate.bind(_this);
|
|
218
|
+
_this.handleRateChange = _this.handleRateChange.bind(_this);
|
|
219
|
+
_this.handleVolumeChange = _this.handleVolumeChange.bind(_this);
|
|
220
|
+
_this.handleDurationChange = _this.handleDurationChange.bind(_this);
|
|
221
|
+
_this.handleProgress = (0, _utils.throttle)(_this.handleProgress.bind(_this), 250);
|
|
222
|
+
_this.handleKeypress = _this.handleKeypress.bind(_this);
|
|
223
|
+
_this.audioVisualizer = _this.audioVisualizer.bind(_this);
|
|
224
|
+
_this.checkWatermark = _this.checkWatermark.bind(_this);
|
|
226
225
|
return _this;
|
|
227
226
|
}
|
|
228
|
-
|
|
227
|
+
_inherits(Video, _Component);
|
|
228
|
+
return _createClass(Video, [{
|
|
229
229
|
key: "componentDidMount",
|
|
230
230
|
value: function componentDidMount() {
|
|
231
231
|
var src = this.props.src;
|
|
@@ -268,8 +268,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
268
268
|
clearInterval(watermarkInterval);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
/**
|
|
272
|
-
* This function is triggered on interval to shuffle the position of watermark on Player area
|
|
271
|
+
/**
|
|
272
|
+
* This function is triggered on interval to shuffle the position of watermark on Player area
|
|
273
273
|
*/
|
|
274
274
|
}, {
|
|
275
275
|
key: "checkWatermark",
|
|
@@ -442,9 +442,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
442
442
|
aspectRatio = _this$props4.aspectRatio,
|
|
443
443
|
width = _this$props4.width,
|
|
444
444
|
height = _this$props4.height;
|
|
445
|
-
/*
|
|
446
|
-
* The aspect ratio is either used directly
|
|
447
|
-
* or to calculate width and height.
|
|
445
|
+
/*
|
|
446
|
+
* The aspect ratio is either used directly
|
|
447
|
+
* or to calculate width and height.
|
|
448
448
|
*/
|
|
449
449
|
if (player.videoWidth) {
|
|
450
450
|
// Otherwise try to get the aspect ratio from the video metadata
|
|
@@ -498,9 +498,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
498
498
|
return this.video.playbackRate;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
/*
|
|
502
|
-
* set playback rate
|
|
503
|
-
* speed of video
|
|
501
|
+
/*
|
|
502
|
+
* set playback rate
|
|
503
|
+
* speed of video
|
|
504
504
|
*/,
|
|
505
505
|
set: function set(rate) {
|
|
506
506
|
this.video.playbackRate = rate;
|
|
@@ -662,9 +662,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
662
662
|
}, {
|
|
663
663
|
key: "toggleViaAnnotatePlay",
|
|
664
664
|
value: function toggleViaAnnotatePlay() {
|
|
665
|
-
if (this.video.paused) {
|
|
666
|
-
this.play();
|
|
667
|
-
} else {
|
|
665
|
+
if (!this.video.paused) {
|
|
668
666
|
this.pause();
|
|
669
667
|
}
|
|
670
668
|
}
|
|
@@ -718,9 +716,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
718
716
|
actions.toggleFullscreen(player);
|
|
719
717
|
}
|
|
720
718
|
|
|
721
|
-
/*
|
|
722
|
-
* Fired when the user agent
|
|
723
|
-
* begins looking for media data
|
|
719
|
+
/*
|
|
720
|
+
* Fired when the user agent
|
|
721
|
+
* begins looking for media data
|
|
724
722
|
*/
|
|
725
723
|
}, {
|
|
726
724
|
key: "handleLoadStart",
|
|
@@ -738,9 +736,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
738
736
|
}
|
|
739
737
|
}
|
|
740
738
|
|
|
741
|
-
/*
|
|
742
|
-
* A handler for events that
|
|
743
|
-
* signal that waiting has ended
|
|
739
|
+
/*
|
|
740
|
+
* A handler for events that
|
|
741
|
+
* signal that waiting has ended
|
|
744
742
|
*/
|
|
745
743
|
}, {
|
|
746
744
|
key: "handleCanPlay",
|
|
@@ -754,9 +752,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
754
752
|
}
|
|
755
753
|
}
|
|
756
754
|
|
|
757
|
-
/*
|
|
758
|
-
* A handler for events that
|
|
759
|
-
* signal that waiting has ended
|
|
755
|
+
/*
|
|
756
|
+
* A handler for events that
|
|
757
|
+
* signal that waiting has ended
|
|
760
758
|
*/
|
|
761
759
|
}, {
|
|
762
760
|
key: "handleCanPlayThrough",
|
|
@@ -770,9 +768,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
770
768
|
}
|
|
771
769
|
}
|
|
772
770
|
|
|
773
|
-
/*
|
|
774
|
-
* A handler for events that
|
|
775
|
-
* signal that waiting has ended
|
|
771
|
+
/*
|
|
772
|
+
* A handler for events that
|
|
773
|
+
* signal that waiting has ended
|
|
776
774
|
*/
|
|
777
775
|
}, {
|
|
778
776
|
key: "handlePlaying",
|
|
@@ -812,9 +810,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
812
810
|
}
|
|
813
811
|
}
|
|
814
812
|
|
|
815
|
-
/*
|
|
816
|
-
* Fired when the duration of
|
|
817
|
-
* the media resource is first known or changed
|
|
813
|
+
/*
|
|
814
|
+
* Fired when the duration of
|
|
815
|
+
* the media resource is first known or changed
|
|
818
816
|
*/
|
|
819
817
|
}, {
|
|
820
818
|
key: "handleDurationChange",
|
|
@@ -828,9 +826,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
828
826
|
}
|
|
829
827
|
}
|
|
830
828
|
|
|
831
|
-
/*
|
|
832
|
-
* Fired while the user agent
|
|
833
|
-
* is downloading media data
|
|
829
|
+
/*
|
|
830
|
+
* Fired while the user agent
|
|
831
|
+
* is downloading media data
|
|
834
832
|
*/
|
|
835
833
|
}, {
|
|
836
834
|
key: "handleProgress",
|
|
@@ -897,9 +895,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
897
895
|
}
|
|
898
896
|
}
|
|
899
897
|
|
|
900
|
-
/*
|
|
901
|
-
* Fired when the end of the media resource
|
|
902
|
-
* is reached (currentTime == duration)
|
|
898
|
+
/*
|
|
899
|
+
* Fired when the end of the media resource
|
|
900
|
+
* is reached (currentTime == duration)
|
|
903
901
|
*/
|
|
904
902
|
}, {
|
|
905
903
|
key: "handleEnded",
|
|
@@ -934,9 +932,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
934
932
|
}
|
|
935
933
|
}
|
|
936
934
|
|
|
937
|
-
/*
|
|
938
|
-
* Fired whenever the player
|
|
939
|
-
* is jumping to a new time
|
|
935
|
+
/*
|
|
936
|
+
* Fired whenever the player
|
|
937
|
+
* is jumping to a new time
|
|
940
938
|
*/
|
|
941
939
|
}, {
|
|
942
940
|
key: "handleSeeking",
|
|
@@ -950,9 +948,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
950
948
|
}
|
|
951
949
|
}
|
|
952
950
|
|
|
953
|
-
/*
|
|
954
|
-
* Fired when the player has
|
|
955
|
-
* finished jumping to a new time
|
|
951
|
+
/*
|
|
952
|
+
* Fired when the player has
|
|
953
|
+
* finished jumping to a new time
|
|
956
954
|
*/
|
|
957
955
|
}, {
|
|
958
956
|
key: "handleSeeked",
|
|
@@ -971,9 +969,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
971
969
|
key: "handleFullscreenChange",
|
|
972
970
|
value: function handleFullscreenChange() {}
|
|
973
971
|
|
|
974
|
-
/*
|
|
975
|
-
* Fires when the browser is
|
|
976
|
-
* intentionally not getting media data
|
|
972
|
+
/*
|
|
973
|
+
* Fires when the browser is
|
|
974
|
+
* intentionally not getting media data
|
|
977
975
|
*/
|
|
978
976
|
}, {
|
|
979
977
|
key: "handleSuspend",
|
|
@@ -1013,9 +1011,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1013
1011
|
}
|
|
1014
1012
|
}
|
|
1015
1013
|
|
|
1016
|
-
/*
|
|
1017
|
-
* Fires when the browser is trying to
|
|
1018
|
-
* get media data, but data is not available
|
|
1014
|
+
/*
|
|
1015
|
+
* Fires when the browser is trying to
|
|
1016
|
+
* get media data, but data is not available
|
|
1019
1017
|
*/
|
|
1020
1018
|
}, {
|
|
1021
1019
|
key: "handleStalled",
|
|
@@ -1029,9 +1027,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1029
1027
|
}
|
|
1030
1028
|
}
|
|
1031
1029
|
|
|
1032
|
-
/*
|
|
1033
|
-
* Fires when the browser has loaded
|
|
1034
|
-
* meta data for the audio/video
|
|
1030
|
+
/*
|
|
1031
|
+
* Fires when the browser has loaded
|
|
1032
|
+
* meta data for the audio/video
|
|
1035
1033
|
*/
|
|
1036
1034
|
}, {
|
|
1037
1035
|
key: "handleLoadedMetaData",
|
|
@@ -1049,9 +1047,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1049
1047
|
}
|
|
1050
1048
|
}
|
|
1051
1049
|
|
|
1052
|
-
/*
|
|
1053
|
-
* Fires when the browser has loaded
|
|
1054
|
-
* the current frame of the audio/video
|
|
1050
|
+
/*
|
|
1051
|
+
* Fires when the browser has loaded
|
|
1052
|
+
* the current frame of the audio/video
|
|
1055
1053
|
*/
|
|
1056
1054
|
}, {
|
|
1057
1055
|
key: "handleLoadedData",
|
|
@@ -1065,9 +1063,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1065
1063
|
}
|
|
1066
1064
|
}
|
|
1067
1065
|
|
|
1068
|
-
/*
|
|
1069
|
-
* Fires when the current
|
|
1070
|
-
* playback position has changed
|
|
1066
|
+
/*
|
|
1067
|
+
* Fires when the current
|
|
1068
|
+
* playback position has changed
|
|
1071
1069
|
*/
|
|
1072
1070
|
}, {
|
|
1073
1071
|
key: "handleTimeUpdate",
|
|
@@ -1098,8 +1096,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1098
1096
|
this.displaySubtitle();
|
|
1099
1097
|
}
|
|
1100
1098
|
|
|
1101
|
-
/**
|
|
1102
|
-
* Fires when the playing speed of the audio/video is changed
|
|
1099
|
+
/**
|
|
1100
|
+
* Fires when the playing speed of the audio/video is changed
|
|
1103
1101
|
*/
|
|
1104
1102
|
}, {
|
|
1105
1103
|
key: "handleRateChange",
|
|
@@ -1126,9 +1124,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1126
1124
|
}
|
|
1127
1125
|
}
|
|
1128
1126
|
|
|
1129
|
-
/*
|
|
1130
|
-
* Fires when an error occurred
|
|
1131
|
-
* during the loading of an audio/video
|
|
1127
|
+
/*
|
|
1128
|
+
* Fires when an error occurred
|
|
1129
|
+
* during the loading of an audio/video
|
|
1132
1130
|
*/
|
|
1133
1131
|
}, {
|
|
1134
1132
|
key: "handleError",
|
|
@@ -1179,10 +1177,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1179
1177
|
for (var i = 0; i < bufferLength; i++) {
|
|
1180
1178
|
barHeight = dataArray[i] * 2;
|
|
1181
1179
|
|
|
1182
|
-
/*
|
|
1183
|
-
* var r = barHeight + (25 * (i / bufferLength));
|
|
1184
|
-
* var g = 250 * (i / bufferLength);
|
|
1185
|
-
* var b = s50;
|
|
1180
|
+
/*
|
|
1181
|
+
* var r = barHeight + (25 * (i / bufferLength));
|
|
1182
|
+
* var g = 250 * (i / bufferLength);
|
|
1183
|
+
* var b = s50;
|
|
1186
1184
|
*/
|
|
1187
1185
|
|
|
1188
1186
|
ctx.fillStyle = '#0c141d'; // 'rgb(' + r + ',' + g + ',' + b + ')';
|
|
@@ -1400,7 +1398,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1400
1398
|
width: '100%',
|
|
1401
1399
|
height: '100%',
|
|
1402
1400
|
pointerEvents: this.state.shouldShowAnnotate ? 'auto' : 'none',
|
|
1403
|
-
zIndex:
|
|
1401
|
+
zIndex: 999
|
|
1404
1402
|
}
|
|
1405
1403
|
}, ((_this$props$parentAnn2 = this.props.parentAnnotations) === null || _this$props$parentAnn2 === void 0 ? void 0 : _this$props$parentAnn2.length) && ((_this$props$parentAnn3 = this.props.parentAnnotations) === null || _this$props$parentAnn3 === void 0 ? void 0 : _this$props$parentAnn3.map(function (ann, idx) {
|
|
1406
1404
|
var _this5$props$playerSv;
|
|
@@ -1521,7 +1519,6 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1521
1519
|
}) || null)));
|
|
1522
1520
|
}
|
|
1523
1521
|
}]);
|
|
1524
|
-
return Video;
|
|
1525
1522
|
}(_react.Component);
|
|
1526
1523
|
Video.propTypes = propTypes;
|
|
1527
1524
|
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,
|
|
@@ -72,6 +72,5 @@ var CameraButton = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
}]);
|
|
75
|
-
return CameraButton;
|
|
76
75
|
}(_react.Component);
|
|
77
76
|
var _default = exports["default"] = CameraButton;
|