@desynova-digital/player 3.5.0 → 3.6.0
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.
|
@@ -18,6 +18,8 @@ var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
|
|
18
18
|
|
|
19
19
|
var _components = require("@desynova-digital/components");
|
|
20
20
|
|
|
21
|
+
var _utils = require("../../utils");
|
|
22
|
+
|
|
21
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
24
|
|
|
23
25
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -56,7 +58,11 @@ var CameraButton = function (_Component) {
|
|
|
56
58
|
onTakeSnapshot = _props.onTakeSnapshot,
|
|
57
59
|
video = _props.video;
|
|
58
60
|
|
|
59
|
-
|
|
61
|
+
var timeObj = {
|
|
62
|
+
"thumbnail": (0, _utils.secondsToTime)(this.props.video.currentTime, this.props.frameRate, this.props.initialTime),
|
|
63
|
+
"thumbnail_seconds": this.props.video.currentTime
|
|
64
|
+
};
|
|
65
|
+
onTakeSnapshot(timeObj);
|
|
60
66
|
}
|
|
61
67
|
}, {
|
|
62
68
|
key: "render",
|