@desynova-digital/player 3.9.8 → 3.9.9
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/Player.js +1 -59
- package/package.json +1 -1
package/components/Player.js
CHANGED
|
@@ -221,62 +221,6 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
221
221
|
* this.actions.toggleFullscreen(player);
|
|
222
222
|
*/
|
|
223
223
|
}
|
|
224
|
-
|
|
225
|
-
// shouldComponentUpdate(nextProps) {
|
|
226
|
-
// // Rendering the component only if passed props value is changed
|
|
227
|
-
|
|
228
|
-
// const replacerFunc = () => {
|
|
229
|
-
// const visited = new WeakSet();
|
|
230
|
-
// return (key, value) => {
|
|
231
|
-
// if (typeof value === 'object' && value !== null) {
|
|
232
|
-
// if (visited.has(value)) {
|
|
233
|
-
// return;
|
|
234
|
-
// }
|
|
235
|
-
// visited.add(value);
|
|
236
|
-
// }
|
|
237
|
-
// return value;
|
|
238
|
-
// };
|
|
239
|
-
// };
|
|
240
|
-
|
|
241
|
-
// if ( JSON.stringify(nextProps, replacerFunc()) !== JSON.stringify(this.props, replacerFunc()) ) {
|
|
242
|
-
// return true;
|
|
243
|
-
// } else {
|
|
244
|
-
// return false;
|
|
245
|
-
// }
|
|
246
|
-
// }
|
|
247
|
-
}, {
|
|
248
|
-
key: "shouldComponentUpdate",
|
|
249
|
-
value:
|
|
250
|
-
// shouldComponentUpdate(nextProps) {
|
|
251
|
-
// // Rendering the component only if
|
|
252
|
-
// // passed props value is changed
|
|
253
|
-
|
|
254
|
-
// const replacerFunc = () => {
|
|
255
|
-
// const visited = new WeakSet();
|
|
256
|
-
// return (key, value) => {
|
|
257
|
-
// if (typeof value === "object" && value !== null) {
|
|
258
|
-
// if (visited.has(value)) {
|
|
259
|
-
// return;
|
|
260
|
-
// }
|
|
261
|
-
// visited.add(value);
|
|
262
|
-
// }
|
|
263
|
-
// return value;
|
|
264
|
-
// };
|
|
265
|
-
// };
|
|
266
|
-
|
|
267
|
-
// if ( JSON.stringify(nextProps, replacerFunc()) !== JSON.stringify(this.props, replacerFunc()) ) {
|
|
268
|
-
// return true;
|
|
269
|
-
// } else {
|
|
270
|
-
// return false;
|
|
271
|
-
// }
|
|
272
|
-
// }
|
|
273
|
-
|
|
274
|
-
function shouldComponentUpdate(nextProps, nextState) {
|
|
275
|
-
if (_.isEqual(nextProps.markers, this.props.markers)) {
|
|
276
|
-
return false;
|
|
277
|
-
}
|
|
278
|
-
return true;
|
|
279
|
-
}
|
|
280
224
|
}, {
|
|
281
225
|
key: "componentDidUpdate",
|
|
282
226
|
value: function componentDidUpdate() {
|
|
@@ -652,7 +596,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
652
596
|
video.style.margin = '0 auto';
|
|
653
597
|
video.classList.add('ratio-border');
|
|
654
598
|
}
|
|
655
|
-
// this.video.handleResize();
|
|
599
|
+
// this.video.handleResize();
|
|
656
600
|
}
|
|
657
601
|
}, {
|
|
658
602
|
key: "handleFullScreenChange",
|
|
@@ -683,8 +627,6 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
683
627
|
var _this5 = this;
|
|
684
628
|
var _this$manager$getStat2 = this.manager.getState(),
|
|
685
629
|
player = _this$manager$getStat2.player;
|
|
686
|
-
// console.log("justttttttttttt");
|
|
687
|
-
|
|
688
630
|
var props = _objectSpread(_objectSpread({}, this.props), {}, {
|
|
689
631
|
player: player,
|
|
690
632
|
actions: this.actions,
|