@desynova-digital/player 3.2.3 → 3.2.4
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/components/Video.js +26 -17
- package/package.json +1 -1
package/components/Video.js
CHANGED
|
@@ -1142,22 +1142,36 @@ var Video = function (_Component) {
|
|
|
1142
1142
|
return _react2.default.cloneElement(c, cprops);
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
|
+
}, {
|
|
1146
|
+
key: 'handleClick',
|
|
1147
|
+
value: function handleClick() {
|
|
1148
|
+
var _props29 = this.props,
|
|
1149
|
+
actions = _props29.actions,
|
|
1150
|
+
player = _props29.player;
|
|
1151
|
+
|
|
1152
|
+
if (player.paused) {
|
|
1153
|
+
actions.play();
|
|
1154
|
+
} else {
|
|
1155
|
+
actions.pause();
|
|
1156
|
+
}
|
|
1157
|
+
actions.handleVideoRewind(false);
|
|
1158
|
+
}
|
|
1145
1159
|
}, {
|
|
1146
1160
|
key: 'render',
|
|
1147
1161
|
value: function render() {
|
|
1148
1162
|
var _this5 = this;
|
|
1149
1163
|
|
|
1150
|
-
var
|
|
1151
|
-
loop =
|
|
1152
|
-
poster =
|
|
1153
|
-
preload =
|
|
1154
|
-
autoPlay =
|
|
1155
|
-
playsInline =
|
|
1156
|
-
muted =
|
|
1157
|
-
crossOrigin =
|
|
1158
|
-
videoId =
|
|
1159
|
-
fileType =
|
|
1160
|
-
userEmail =
|
|
1164
|
+
var _props30 = this.props,
|
|
1165
|
+
loop = _props30.loop,
|
|
1166
|
+
poster = _props30.poster,
|
|
1167
|
+
preload = _props30.preload,
|
|
1168
|
+
autoPlay = _props30.autoPlay,
|
|
1169
|
+
playsInline = _props30.playsInline,
|
|
1170
|
+
muted = _props30.muted,
|
|
1171
|
+
crossOrigin = _props30.crossOrigin,
|
|
1172
|
+
videoId = _props30.videoId,
|
|
1173
|
+
fileType = _props30.fileType,
|
|
1174
|
+
userEmail = _props30.userEmail;
|
|
1161
1175
|
var _state2 = this.state,
|
|
1162
1176
|
isBuffering = _state2.isBuffering,
|
|
1163
1177
|
watermark = _state2.watermark,
|
|
@@ -1287,12 +1301,7 @@ var Video = function (_Component) {
|
|
|
1287
1301
|
SubTitleSection,
|
|
1288
1302
|
{
|
|
1289
1303
|
onClick: function onClick() {
|
|
1290
|
-
|
|
1291
|
-
actions.play();
|
|
1292
|
-
} else {
|
|
1293
|
-
actions.pause();
|
|
1294
|
-
}
|
|
1295
|
-
actions.handleVideoRewind(false);
|
|
1304
|
+
return _this5.handleClick();
|
|
1296
1305
|
}
|
|
1297
1306
|
},
|
|
1298
1307
|
_react2.default.createElement(
|