@desynova-digital/player 4.0.64 → 4.0.66

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.
@@ -537,6 +537,7 @@ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
537
537
  onAddMarker(playerSelectedMarker.leftMarker, currentAdjustedTime, '', false, {
538
538
  markerType: 'create'
539
539
  });
540
+ actions.seek(player.currentTime);
540
541
  }
541
542
  }
542
543
  }
@@ -115,6 +115,19 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
115
115
  var _this;
116
116
  _classCallCheck(this, Video);
117
117
  _this = _callSuper(this, Video, [props]);
118
+ _defineProperty(_this, "updateAnnotateVisibility", function () {
119
+ if (!_this.video) return;
120
+ var _this$getTimeData = _this.getTimeData(_this.video.currentTime),
121
+ shouldShow = _this$getTimeData.shouldShow;
122
+ if (_this.state.shouldShowAnnotate !== shouldShow) {
123
+ _this.setState({
124
+ shouldShowAnnotate: shouldShow
125
+ });
126
+ }
127
+ });
128
+ _defineProperty(_this, "onVideoTimeUpdate", function () {
129
+ _this.updateAnnotateVisibility();
130
+ });
118
131
  _defineProperty(_this, "buildSmoothPath", function (points) {
119
132
  if (!points || points.length < 2) return '';
120
133
  var path = "M ".concat(points[0].x, " ").concat(points[0].y);
@@ -246,13 +259,22 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
246
259
  this.setState({
247
260
  watermarkInterval: watermarkInterval
248
261
  });
262
+ if (this.video) {
263
+ this.video.addEventListener("timeupdate", this.onVideoTimeUpdate);
264
+ }
249
265
  }
250
266
  }, {
251
267
  key: "componentDidUpdate",
252
268
  value: function componentDidUpdate(prevProps) {
269
+ var _this$props2 = this.props,
270
+ inTime = _this$props2.inTime,
271
+ outTime = _this$props2.outTime;
253
272
  if (this.props.isSvgLayer && this.props.isSvgLayer !== prevProps.isSvgLayer) {
254
273
  this.toggleViaAnnotatePlay();
255
274
  }
275
+ if (inTime !== prevProps.inTime || outTime !== prevProps.outTime) {
276
+ this.updateAnnotateVisibility();
277
+ }
256
278
  }
257
279
  }, {
258
280
  key: "componentWillUnmount",
@@ -266,18 +288,21 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
266
288
  this.video.src = '';
267
289
  }
268
290
  clearInterval(watermarkInterval);
291
+ if (this.video) {
292
+ this.video.removeEventListener("timeupdate", this.onVideoTimeUpdate);
293
+ }
269
294
  }
270
-
295
+ }, {
296
+ key: "checkWatermark",
297
+ value:
271
298
  /**
272
299
  * This function is triggered on interval to shuffle the position of watermark on Player area
273
300
  */
274
- }, {
275
- key: "checkWatermark",
276
- value: function checkWatermark() {
301
+ function checkWatermark() {
277
302
  var watermark = this.state.watermark;
278
- var _this$props2 = this.props,
279
- onPlayerClose = _this$props2.onPlayerClose,
280
- userEmail = _this$props2.userEmail;
303
+ var _this$props3 = this.props,
304
+ onPlayerClose = _this$props3.onPlayerClose,
305
+ userEmail = _this$props3.userEmail;
281
306
  var watermark_text = document.querySelector('#watermark-text');
282
307
  var video_player = null;
283
308
  var watermark_dimension = null;
@@ -310,9 +335,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
310
335
  key: "setupHLS",
311
336
  value: function setupHLS(src) {
312
337
  var _this2 = this;
313
- var _this$props3 = this.props,
314
- actions = _this$props3.actions,
315
- activeTrackIndex = _this$props3.activeTrackIndex;
338
+ var _this$props4 = this.props,
339
+ actions = _this$props4.actions,
340
+ activeTrackIndex = _this$props4.activeTrackIndex;
316
341
  var self = this;
317
342
  // bind them together
318
343
  this.hls.attachMedia(this.video);
@@ -360,7 +385,7 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
360
385
  text: "4:3 Safe Area",
361
386
  keyData: "SDBorderActive"
362
387
  }, props)), /*#__PURE__*/_react["default"].createElement(_SDOutline["default"], _extends({
363
- key: "sd-outline-3",
388
+ key: "sd-outline-2",
364
389
  order: 3.0,
365
390
  paddingLeftPercent: "100%",
366
391
  paddingLeftRatio: " 0.998",
@@ -438,10 +463,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
438
463
  var _this$manager$getStat2 = this.manager.getState(),
439
464
  player = _this$manager$getStat2.player;
440
465
  var style = {};
441
- var _this$props4 = this.props,
442
- aspectRatio = _this$props4.aspectRatio,
443
- width = _this$props4.width,
444
- height = _this$props4.height;
466
+ var _this$props5 = this.props,
467
+ aspectRatio = _this$props5.aspectRatio,
468
+ width = _this$props5.width,
469
+ height = _this$props5.height;
445
470
  /*
446
471
  * The aspect ratio is either used directly
447
472
  * or to calculate width and height.
@@ -544,12 +569,12 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
544
569
  }, {
545
570
  key: "UNSAFE_componentWillReceiveProps",
546
571
  value: function UNSAFE_componentWillReceiveProps(newProps) {
547
- var _this$props5 = this.props,
548
- src = _this$props5.src,
549
- activeAudio = _this$props5.player.activeAudio,
550
- currentSubtitleObj = _this$props5.currentSubtitleObj,
551
- markers = _this$props5.markers,
552
- playerType = _this$props5.playerType;
572
+ var _this$props6 = this.props,
573
+ src = _this$props6.src,
574
+ activeAudio = _this$props6.player.activeAudio,
575
+ currentSubtitleObj = _this$props6.currentSubtitleObj,
576
+ markers = _this$props6.markers,
577
+ playerType = _this$props6.playerType;
553
578
  if (markers && markers !== newProps.markers && newProps.markers) {
554
579
  this.displaySubtitle(newProps.markers);
555
580
  }
@@ -673,8 +698,8 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
673
698
  value: function seek(time) {
674
699
  try {
675
700
  //for annotation time updatation for svg
676
- var _this$getTimeData = this.getTimeData(this.video.currentTime),
677
- shouldShow = _this$getTimeData.shouldShow;
701
+ var _this$getTimeData2 = this.getTimeData(this.video.currentTime),
702
+ shouldShow = _this$getTimeData2.shouldShow;
678
703
  if (this.state.shouldShowAnnotate !== shouldShow) {
679
704
  this.setState({
680
705
  shouldShowAnnotate: shouldShow
@@ -710,9 +735,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
710
735
  }, {
711
736
  key: "toggleFullscreen",
712
737
  value: function toggleFullscreen() {
713
- var _this$props6 = this.props,
714
- player = _this$props6.player,
715
- actions = _this$props6.actions;
738
+ var _this$props7 = this.props,
739
+ player = _this$props7.player,
740
+ actions = _this$props7.actions;
716
741
  actions.toggleFullscreen(player);
717
742
  }
718
743
 
@@ -723,10 +748,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
723
748
  }, {
724
749
  key: "handleLoadStart",
725
750
  value: function handleLoadStart() {
726
- var _this$props7 = this.props,
727
- actions = _this$props7.actions,
728
- onLoadStart = _this$props7.onLoadStart,
729
- fileType = _this$props7.fileType;
751
+ var _this$props8 = this.props,
752
+ actions = _this$props8.actions,
753
+ onLoadStart = _this$props8.onLoadStart,
754
+ fileType = _this$props8.fileType;
730
755
  if (fileType === 'audio') {
731
756
  this.audioVisualizer();
732
757
  }
@@ -743,9 +768,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
743
768
  }, {
744
769
  key: "handleCanPlay",
745
770
  value: function handleCanPlay() {
746
- var _this$props8 = this.props,
747
- actions = _this$props8.actions,
748
- onCanPlay = _this$props8.onCanPlay;
771
+ var _this$props9 = this.props,
772
+ actions = _this$props9.actions,
773
+ onCanPlay = _this$props9.onCanPlay;
749
774
  actions.handleCanPlay(this.getProperties());
750
775
  if (onCanPlay) {
751
776
  onCanPlay.apply(void 0, arguments);
@@ -759,9 +784,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
759
784
  }, {
760
785
  key: "handleCanPlayThrough",
761
786
  value: function handleCanPlayThrough() {
762
- var _this$props9 = this.props,
763
- actions = _this$props9.actions,
764
- onCanPlayThrough = _this$props9.onCanPlayThrough;
787
+ var _this$props10 = this.props,
788
+ actions = _this$props10.actions,
789
+ onCanPlayThrough = _this$props10.onCanPlayThrough;
765
790
  actions.handleCanPlayThrough(this.getProperties());
766
791
  if (onCanPlayThrough) {
767
792
  onCanPlayThrough.apply(void 0, arguments);
@@ -775,9 +800,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
775
800
  }, {
776
801
  key: "handlePlaying",
777
802
  value: function handlePlaying() {
778
- var _this$props10 = this.props,
779
- actions = _this$props10.actions,
780
- onPlaying = _this$props10.onPlaying;
803
+ var _this$props11 = this.props,
804
+ actions = _this$props11.actions,
805
+ onPlaying = _this$props11.onPlaying;
781
806
  actions.handlePlaying(this.getProperties());
782
807
  if (onPlaying) {
783
808
  onPlaying.apply(void 0, arguments);
@@ -788,9 +813,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
788
813
  }, {
789
814
  key: "handlePlay",
790
815
  value: function handlePlay() {
791
- var _this$props11 = this.props,
792
- actions = _this$props11.actions,
793
- onPlay = _this$props11.onPlay;
816
+ var _this$props12 = this.props,
817
+ actions = _this$props12.actions,
818
+ onPlay = _this$props12.onPlay;
794
819
  actions.handlePlay(this.getProperties());
795
820
  if (onPlay) {
796
821
  onPlay.apply(void 0, arguments);
@@ -801,9 +826,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
801
826
  }, {
802
827
  key: "handlePause",
803
828
  value: function handlePause() {
804
- var _this$props12 = this.props,
805
- actions = _this$props12.actions,
806
- onPause = _this$props12.onPause;
829
+ var _this$props13 = this.props,
830
+ actions = _this$props13.actions,
831
+ onPause = _this$props13.onPause;
807
832
  actions.handlePause(this.getProperties());
808
833
  if (onPause) {
809
834
  onPause.apply(void 0, arguments);
@@ -817,9 +842,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
817
842
  }, {
818
843
  key: "handleDurationChange",
819
844
  value: function handleDurationChange() {
820
- var _this$props13 = this.props,
821
- actions = _this$props13.actions,
822
- onDurationChange = _this$props13.onDurationChange;
845
+ var _this$props14 = this.props,
846
+ actions = _this$props14.actions,
847
+ onDurationChange = _this$props14.onDurationChange;
823
848
  actions.handleDurationChange(this.getProperties());
824
849
  if (onDurationChange) {
825
850
  onDurationChange.apply(void 0, arguments);
@@ -833,9 +858,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
833
858
  }, {
834
859
  key: "handleProgress",
835
860
  value: function handleProgress() {
836
- var _this$props14 = this.props,
837
- actions = _this$props14.actions,
838
- onProgress = _this$props14.onProgress;
861
+ var _this$props15 = this.props,
862
+ actions = _this$props15.actions,
863
+ onProgress = _this$props15.onProgress;
839
864
  if (this.video) {
840
865
  actions.handleProgressChange(this.getProperties());
841
866
  }
@@ -856,11 +881,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
856
881
  }, {
857
882
  key: "displaySubtitle",
858
883
  value: function displaySubtitle(marker) {
859
- var _this$props15 = this.props,
860
- markers = _this$props15.markers,
861
- resetSubtitleData = _this$props15.resetSubtitleData,
862
- subtitleReadOnly = _this$props15.subtitleReadOnly,
863
- subtitleDataList = _this$props15.subtitleDataList;
884
+ var _this$props16 = this.props,
885
+ markers = _this$props16.markers,
886
+ resetSubtitleData = _this$props16.resetSubtitleData,
887
+ subtitleReadOnly = _this$props16.subtitleReadOnly,
888
+ subtitleDataList = _this$props16.subtitleDataList;
864
889
  var currentSubtitleObj = this.state.currentSubtitleObj;
865
890
  if (resetSubtitleData) {
866
891
  resetSubtitleData();
@@ -902,11 +927,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
902
927
  }, {
903
928
  key: "handleEnded",
904
929
  value: function handleEnded() {
905
- var _this$props16 = this.props,
906
- loop = _this$props16.loop,
907
- player = _this$props16.player,
908
- actions = _this$props16.actions,
909
- onEnded = _this$props16.onEnded;
930
+ var _this$props17 = this.props,
931
+ loop = _this$props17.loop,
932
+ player = _this$props17.player,
933
+ actions = _this$props17.actions,
934
+ onEnded = _this$props17.onEnded;
910
935
  if (loop) {
911
936
  this.seek(0);
912
937
  this.play();
@@ -923,9 +948,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
923
948
  }, {
924
949
  key: "handleWaiting",
925
950
  value: function handleWaiting() {
926
- var _this$props17 = this.props,
927
- actions = _this$props17.actions,
928
- onWaiting = _this$props17.onWaiting;
951
+ var _this$props18 = this.props,
952
+ actions = _this$props18.actions,
953
+ onWaiting = _this$props18.onWaiting;
929
954
  actions.handleWaiting(this.getProperties());
930
955
  if (onWaiting) {
931
956
  onWaiting.apply(void 0, arguments);
@@ -939,9 +964,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
939
964
  }, {
940
965
  key: "handleSeeking",
941
966
  value: function handleSeeking() {
942
- var _this$props18 = this.props,
943
- actions = _this$props18.actions,
944
- onSeeking = _this$props18.onSeeking;
967
+ var _this$props19 = this.props,
968
+ actions = _this$props19.actions,
969
+ onSeeking = _this$props19.onSeeking;
945
970
  actions.handleSeeking(this.getProperties());
946
971
  if (onSeeking) {
947
972
  onSeeking.apply(void 0, arguments);
@@ -955,9 +980,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
955
980
  }, {
956
981
  key: "handleSeeked",
957
982
  value: function handleSeeked() {
958
- var _this$props19 = this.props,
959
- actions = _this$props19.actions,
960
- onSeeked = _this$props19.onSeeked;
983
+ var _this$props20 = this.props,
984
+ actions = _this$props20.actions,
985
+ onSeeked = _this$props20.onSeeked;
961
986
  actions.handleSeeked(this.getProperties());
962
987
  if (onSeeked) {
963
988
  onSeeked.apply(void 0, arguments);
@@ -976,9 +1001,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
976
1001
  }, {
977
1002
  key: "handleSuspend",
978
1003
  value: function handleSuspend() {
979
- var _this$props20 = this.props,
980
- actions = _this$props20.actions,
981
- onSuspend = _this$props20.onSuspend;
1004
+ var _this$props21 = this.props,
1005
+ actions = _this$props21.actions,
1006
+ onSuspend = _this$props21.onSuspend;
982
1007
  actions.handleSuspend(this.getProperties());
983
1008
  if (onSuspend) {
984
1009
  onSuspend.apply(void 0, arguments);
@@ -989,9 +1014,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
989
1014
  }, {
990
1015
  key: "handleAbort",
991
1016
  value: function handleAbort() {
992
- var _this$props21 = this.props,
993
- actions = _this$props21.actions,
994
- onAbort = _this$props21.onAbort;
1017
+ var _this$props22 = this.props,
1018
+ actions = _this$props22.actions,
1019
+ onAbort = _this$props22.onAbort;
995
1020
  actions.handleAbort(this.getProperties());
996
1021
  if (onAbort) {
997
1022
  onAbort.apply(void 0, arguments);
@@ -1002,9 +1027,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1002
1027
  }, {
1003
1028
  key: "handleEmptied",
1004
1029
  value: function handleEmptied() {
1005
- var _this$props22 = this.props,
1006
- actions = _this$props22.actions,
1007
- onEmptied = _this$props22.onEmptied;
1030
+ var _this$props23 = this.props,
1031
+ actions = _this$props23.actions,
1032
+ onEmptied = _this$props23.onEmptied;
1008
1033
  actions.handleEmptied(this.getProperties());
1009
1034
  if (onEmptied) {
1010
1035
  onEmptied.apply(void 0, arguments);
@@ -1018,9 +1043,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1018
1043
  }, {
1019
1044
  key: "handleStalled",
1020
1045
  value: function handleStalled() {
1021
- var _this$props23 = this.props,
1022
- actions = _this$props23.actions,
1023
- onStalled = _this$props23.onStalled;
1046
+ var _this$props24 = this.props,
1047
+ actions = _this$props24.actions,
1048
+ onStalled = _this$props24.onStalled;
1024
1049
  actions.handleStalled(this.getProperties());
1025
1050
  if (onStalled) {
1026
1051
  onStalled.apply(void 0, arguments);
@@ -1034,10 +1059,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1034
1059
  }, {
1035
1060
  key: "handleLoadedMetaData",
1036
1061
  value: function handleLoadedMetaData() {
1037
- var _this$props24 = this.props,
1038
- actions = _this$props24.actions,
1039
- onLoadedMetadata = _this$props24.onLoadedMetadata,
1040
- startTime = _this$props24.startTime;
1062
+ var _this$props25 = this.props,
1063
+ actions = _this$props25.actions,
1064
+ onLoadedMetadata = _this$props25.onLoadedMetadata,
1065
+ startTime = _this$props25.startTime;
1041
1066
  if (startTime && startTime > 0) {
1042
1067
  this.video.currentTime = startTime;
1043
1068
  }
@@ -1054,9 +1079,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1054
1079
  }, {
1055
1080
  key: "handleLoadedData",
1056
1081
  value: function handleLoadedData() {
1057
- var _this$props25 = this.props,
1058
- actions = _this$props25.actions,
1059
- onLoadedData = _this$props25.onLoadedData;
1082
+ var _this$props26 = this.props,
1083
+ actions = _this$props26.actions,
1084
+ onLoadedData = _this$props26.onLoadedData;
1060
1085
  actions.handleLoadedData(this.getProperties());
1061
1086
  if (onLoadedData) {
1062
1087
  onLoadedData.apply(void 0, arguments);
@@ -1070,15 +1095,15 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1070
1095
  }, {
1071
1096
  key: "handleTimeUpdate",
1072
1097
  value: function handleTimeUpdate() {
1073
- var _this$props26 = this.props,
1074
- previewActive = _this$props26.player.previewActive,
1075
- actions = _this$props26.actions,
1076
- onTimeUpdate = _this$props26.onTimeUpdate,
1077
- rightMarker = _this$props26.playerSelectedMarker.rightMarker;
1098
+ var _this$props27 = this.props,
1099
+ previewActive = _this$props27.player.previewActive,
1100
+ actions = _this$props27.actions,
1101
+ onTimeUpdate = _this$props27.onTimeUpdate,
1102
+ rightMarker = _this$props27.playerSelectedMarker.rightMarker;
1078
1103
 
1079
1104
  //for annotation time updataton for svg
1080
- var _this$getTimeData2 = this.getTimeData(this.video.currentTime),
1081
- shouldShow = _this$getTimeData2.shouldShow;
1105
+ var _this$getTimeData3 = this.getTimeData(this.video.currentTime),
1106
+ shouldShow = _this$getTimeData3.shouldShow;
1082
1107
  if (this.state.shouldShowAnnotate !== shouldShow) {
1083
1108
  this.setState({
1084
1109
  shouldShowAnnotate: shouldShow
@@ -1102,9 +1127,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1102
1127
  }, {
1103
1128
  key: "handleRateChange",
1104
1129
  value: function handleRateChange() {
1105
- var _this$props27 = this.props,
1106
- actions = _this$props27.actions,
1107
- onRateChange = _this$props27.onRateChange;
1130
+ var _this$props28 = this.props,
1131
+ actions = _this$props28.actions,
1132
+ onRateChange = _this$props28.onRateChange;
1108
1133
  actions.handleRateChange(this.getProperties());
1109
1134
  if (onRateChange) {
1110
1135
  onRateChange.apply(void 0, arguments);
@@ -1115,9 +1140,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1115
1140
  }, {
1116
1141
  key: "handleVolumeChange",
1117
1142
  value: function handleVolumeChange() {
1118
- var _this$props28 = this.props,
1119
- actions = _this$props28.actions,
1120
- onVolumeChange = _this$props28.onVolumeChange;
1143
+ var _this$props29 = this.props,
1144
+ actions = _this$props29.actions,
1145
+ onVolumeChange = _this$props29.onVolumeChange;
1121
1146
  actions.handleVolumeChange(this.getProperties());
1122
1147
  if (onVolumeChange) {
1123
1148
  onVolumeChange.apply(void 0, arguments);
@@ -1131,9 +1156,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1131
1156
  }, {
1132
1157
  key: "handleError",
1133
1158
  value: function handleError() {
1134
- var _this$props29 = this.props,
1135
- actions = _this$props29.actions,
1136
- onError = _this$props29.onError;
1159
+ var _this$props30 = this.props,
1160
+ actions = _this$props30.actions,
1161
+ onError = _this$props30.onError;
1137
1162
  actions.handleError(this.getProperties());
1138
1163
  if (onError) {
1139
1164
  onError.apply(void 0, arguments);
@@ -1227,9 +1252,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1227
1252
  }, {
1228
1253
  key: "handleSubtitleContainerClick",
1229
1254
  value: function handleSubtitleContainerClick() {
1230
- var _this$props30 = this.props,
1231
- actions = _this$props30.actions,
1232
- player = _this$props30.player;
1255
+ var _this$props31 = this.props,
1256
+ actions = _this$props31.actions,
1257
+ player = _this$props31.player;
1233
1258
  if (player.paused) {
1234
1259
  actions.play();
1235
1260
  } else {
@@ -1239,11 +1264,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1239
1264
  }, {
1240
1265
  key: "handleSubtitleClick",
1241
1266
  value: function handleSubtitleClick(e) {
1242
- var _this$props31 = this.props,
1243
- actions = _this$props31.actions,
1244
- player = _this$props31.player,
1245
- onScreenSubtitleClick = _this$props31.onScreenSubtitleClick,
1246
- controlType = _this$props31.controlType;
1267
+ var _this$props32 = this.props,
1268
+ actions = _this$props32.actions,
1269
+ player = _this$props32.player,
1270
+ onScreenSubtitleClick = _this$props32.onScreenSubtitleClick,
1271
+ controlType = _this$props32.controlType;
1247
1272
  var currentSubtitleObj = this.state.currentSubtitleObj;
1248
1273
  if (controlType === 'advanced') {
1249
1274
  if (onScreenSubtitleClick) {
@@ -1268,21 +1293,21 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
1268
1293
  _this$props$parentAnn2,
1269
1294
  _this$props$parentAnn3,
1270
1295
  _this$props$parentAnn4;
1271
- var _this$props32 = this.props,
1272
- loop = _this$props32.loop,
1273
- poster = _this$props32.poster,
1274
- preload = _this$props32.preload,
1275
- autoPlay = _this$props32.autoPlay,
1276
- playsInline = _this$props32.playsInline,
1277
- muted = _this$props32.muted,
1278
- crossOrigin = _this$props32.crossOrigin,
1279
- videoId = _this$props32.videoId,
1280
- fileType = _this$props32.fileType,
1281
- userEmail = _this$props32.userEmail,
1282
- theme = _this$props32.theme,
1283
- player = _this$props32.player,
1284
- playerType = _this$props32.playerType,
1285
- markers = _this$props32.markers;
1296
+ var _this$props33 = this.props,
1297
+ loop = _this$props33.loop,
1298
+ poster = _this$props33.poster,
1299
+ preload = _this$props33.preload,
1300
+ autoPlay = _this$props33.autoPlay,
1301
+ playsInline = _this$props33.playsInline,
1302
+ muted = _this$props33.muted,
1303
+ crossOrigin = _this$props33.crossOrigin,
1304
+ videoId = _this$props33.videoId,
1305
+ fileType = _this$props33.fileType,
1306
+ userEmail = _this$props33.userEmail,
1307
+ theme = _this$props33.theme,
1308
+ player = _this$props33.player,
1309
+ playerType = _this$props33.playerType,
1310
+ markers = _this$props33.markers;
1286
1311
  var _this$state2 = this.state,
1287
1312
  isBuffering = _this$state2.isBuffering,
1288
1313
  watermark = _this$state2.watermark,
@@ -96,7 +96,7 @@ var CaptionControlMenuButton = /*#__PURE__*/function (_Component) {
96
96
  theme = _this$props4.theme,
97
97
  subtitleData = _this$props4.subtitleData,
98
98
  playerType = _this$props4.playerType;
99
- var showCaptionButton = subtitleData && subtitleData.length && playerType === 'default';
99
+ var showCaptionButton = subtitleData && subtitleData.length;
100
100
  return showCaptionButton ? /*#__PURE__*/_react["default"].createElement("div", {
101
101
  style: {
102
102
  marginRight: '10px'
@@ -236,6 +236,10 @@ var ControlBar = exports["default"] = /*#__PURE__*/function (_Component) {
236
236
  }), /*#__PURE__*/_react["default"].createElement(_SubtitleMovementMenu["default"], _extends({}, this.props, {
237
237
  key: "subtitle-movement-menu",
238
238
  order: 8
239
+ })), /*#__PURE__*/_react["default"].createElement(_CaptionControlMenuButton["default"], _extends({}, this.props, {
240
+ order: 8,
241
+ playerType: playerType,
242
+ key: "caption-control-menu-button"
239
243
  })), /*#__PURE__*/_react["default"].createElement(_AudioTracksMenuButton["default"], _extends({}, this.props, {
240
244
  key: "audio-tracks-menu-button",
241
245
  order: 9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "4.0.64",
3
+ "version": "4.0.66",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {