@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.
Files changed (2) hide show
  1. package/components/Video.js +26 -17
  2. package/package.json +1 -1
@@ -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 _props29 = this.props,
1151
- loop = _props29.loop,
1152
- poster = _props29.poster,
1153
- preload = _props29.preload,
1154
- autoPlay = _props29.autoPlay,
1155
- playsInline = _props29.playsInline,
1156
- muted = _props29.muted,
1157
- crossOrigin = _props29.crossOrigin,
1158
- videoId = _props29.videoId,
1159
- fileType = _props29.fileType,
1160
- userEmail = _props29.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
- if (player.paused) {
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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {