@desynova-digital/player 4.0.73 → 4.0.74
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 +132 -127
- package/package.json +1 -1
package/components/Video.js
CHANGED
|
@@ -119,6 +119,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
119
119
|
_this = _callSuper(this, Video, [props]);
|
|
120
120
|
_defineProperty(_this, "updateAnnotateVisibility", function () {
|
|
121
121
|
if (!_this.video) return;
|
|
122
|
+
var _this$props = _this.props,
|
|
123
|
+
initialTime = _this$props.initialTime,
|
|
124
|
+
frameRate = _this$props.frameRate;
|
|
125
|
+
var currentFormattedTime = (0, _utils.secondsToTime)(_this.video.currentTime, frameRate, initialTime);
|
|
126
|
+
if (currentFormattedTime) _this.props.onAutoScroll(currentFormattedTime);
|
|
122
127
|
var _this$getTimeData = _this.getTimeData(_this.video.currentTime),
|
|
123
128
|
shouldShow = _this$getTimeData.shouldShow;
|
|
124
129
|
if (_this.state.shouldShowAnnotate !== shouldShow) {
|
|
@@ -150,11 +155,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
150
155
|
return path;
|
|
151
156
|
});
|
|
152
157
|
_defineProperty(_this, "getTimeData", function (time) {
|
|
153
|
-
var _this$
|
|
154
|
-
inTime = _this$
|
|
155
|
-
outTime = _this$
|
|
156
|
-
initialTime = _this$
|
|
157
|
-
frameRate = _this$
|
|
158
|
+
var _this$props2 = _this.props,
|
|
159
|
+
inTime = _this$props2.inTime,
|
|
160
|
+
outTime = _this$props2.outTime,
|
|
161
|
+
initialTime = _this$props2.initialTime,
|
|
162
|
+
frameRate = _this$props2.frameRate;
|
|
158
163
|
var currentFormattedTime = (0, _utils.secondsToTime)(time, frameRate, initialTime);
|
|
159
164
|
var timecodeToSeconds = function timecodeToSeconds(tc) {
|
|
160
165
|
if (!tc || tc === '-1') return null;
|
|
@@ -275,9 +280,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
275
280
|
}, {
|
|
276
281
|
key: "componentDidUpdate",
|
|
277
282
|
value: function componentDidUpdate(prevProps) {
|
|
278
|
-
var _this$
|
|
279
|
-
inTime = _this$
|
|
280
|
-
outTime = _this$
|
|
283
|
+
var _this$props3 = this.props,
|
|
284
|
+
inTime = _this$props3.inTime,
|
|
285
|
+
outTime = _this$props3.outTime;
|
|
281
286
|
if (this.props.isSvgLayer && this.props.isSvgLayer !== prevProps.isSvgLayer) {
|
|
282
287
|
this.toggleViaAnnotatePlay();
|
|
283
288
|
}
|
|
@@ -309,9 +314,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
309
314
|
*/
|
|
310
315
|
function checkWatermark() {
|
|
311
316
|
var watermark = this.state.watermark;
|
|
312
|
-
var _this$
|
|
313
|
-
onPlayerClose = _this$
|
|
314
|
-
userEmail = _this$
|
|
317
|
+
var _this$props4 = this.props,
|
|
318
|
+
onPlayerClose = _this$props4.onPlayerClose,
|
|
319
|
+
userEmail = _this$props4.userEmail;
|
|
315
320
|
var watermark_text = document.querySelector('#watermark-text');
|
|
316
321
|
var video_player = null;
|
|
317
322
|
var watermark_dimension = null;
|
|
@@ -344,9 +349,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
344
349
|
key: "setupHLS",
|
|
345
350
|
value: function setupHLS(src) {
|
|
346
351
|
var _this2 = this;
|
|
347
|
-
var _this$
|
|
348
|
-
actions = _this$
|
|
349
|
-
activeTrackIndex = _this$
|
|
352
|
+
var _this$props5 = this.props,
|
|
353
|
+
actions = _this$props5.actions,
|
|
354
|
+
activeTrackIndex = _this$props5.activeTrackIndex;
|
|
350
355
|
var self = this;
|
|
351
356
|
// bind them together
|
|
352
357
|
this.hls.attachMedia(this.video);
|
|
@@ -472,10 +477,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
472
477
|
var _this$manager$getStat2 = this.manager.getState(),
|
|
473
478
|
player = _this$manager$getStat2.player;
|
|
474
479
|
var style = {};
|
|
475
|
-
var _this$
|
|
476
|
-
aspectRatio = _this$
|
|
477
|
-
width = _this$
|
|
478
|
-
height = _this$
|
|
480
|
+
var _this$props6 = this.props,
|
|
481
|
+
aspectRatio = _this$props6.aspectRatio,
|
|
482
|
+
width = _this$props6.width,
|
|
483
|
+
height = _this$props6.height;
|
|
479
484
|
/*
|
|
480
485
|
* The aspect ratio is either used directly
|
|
481
486
|
* or to calculate width and height.
|
|
@@ -578,12 +583,12 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
578
583
|
}, {
|
|
579
584
|
key: "UNSAFE_componentWillReceiveProps",
|
|
580
585
|
value: function UNSAFE_componentWillReceiveProps(newProps) {
|
|
581
|
-
var _this$
|
|
582
|
-
src = _this$
|
|
583
|
-
activeAudio = _this$
|
|
584
|
-
currentSubtitleObj = _this$
|
|
585
|
-
markers = _this$
|
|
586
|
-
playerType = _this$
|
|
586
|
+
var _this$props7 = this.props,
|
|
587
|
+
src = _this$props7.src,
|
|
588
|
+
activeAudio = _this$props7.player.activeAudio,
|
|
589
|
+
currentSubtitleObj = _this$props7.currentSubtitleObj,
|
|
590
|
+
markers = _this$props7.markers,
|
|
591
|
+
playerType = _this$props7.playerType;
|
|
587
592
|
if (markers && markers !== newProps.markers && newProps.markers) {
|
|
588
593
|
this.displaySubtitle(newProps.markers);
|
|
589
594
|
}
|
|
@@ -744,9 +749,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
744
749
|
}, {
|
|
745
750
|
key: "toggleFullscreen",
|
|
746
751
|
value: function toggleFullscreen() {
|
|
747
|
-
var _this$
|
|
748
|
-
player = _this$
|
|
749
|
-
actions = _this$
|
|
752
|
+
var _this$props8 = this.props,
|
|
753
|
+
player = _this$props8.player,
|
|
754
|
+
actions = _this$props8.actions;
|
|
750
755
|
actions.toggleFullscreen(player);
|
|
751
756
|
}
|
|
752
757
|
|
|
@@ -757,10 +762,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
757
762
|
}, {
|
|
758
763
|
key: "handleLoadStart",
|
|
759
764
|
value: function handleLoadStart() {
|
|
760
|
-
var _this$
|
|
761
|
-
actions = _this$
|
|
762
|
-
onLoadStart = _this$
|
|
763
|
-
fileType = _this$
|
|
765
|
+
var _this$props9 = this.props,
|
|
766
|
+
actions = _this$props9.actions,
|
|
767
|
+
onLoadStart = _this$props9.onLoadStart,
|
|
768
|
+
fileType = _this$props9.fileType;
|
|
764
769
|
if (fileType === 'audio') {
|
|
765
770
|
this.audioVisualizer();
|
|
766
771
|
}
|
|
@@ -777,9 +782,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
777
782
|
}, {
|
|
778
783
|
key: "handleCanPlay",
|
|
779
784
|
value: function handleCanPlay() {
|
|
780
|
-
var _this$
|
|
781
|
-
actions = _this$
|
|
782
|
-
onCanPlay = _this$
|
|
785
|
+
var _this$props10 = this.props,
|
|
786
|
+
actions = _this$props10.actions,
|
|
787
|
+
onCanPlay = _this$props10.onCanPlay;
|
|
783
788
|
actions.handleCanPlay(this.getProperties());
|
|
784
789
|
if (onCanPlay) {
|
|
785
790
|
onCanPlay.apply(void 0, arguments);
|
|
@@ -793,9 +798,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
793
798
|
}, {
|
|
794
799
|
key: "handleCanPlayThrough",
|
|
795
800
|
value: function handleCanPlayThrough() {
|
|
796
|
-
var _this$
|
|
797
|
-
actions = _this$
|
|
798
|
-
onCanPlayThrough = _this$
|
|
801
|
+
var _this$props11 = this.props,
|
|
802
|
+
actions = _this$props11.actions,
|
|
803
|
+
onCanPlayThrough = _this$props11.onCanPlayThrough;
|
|
799
804
|
actions.handleCanPlayThrough(this.getProperties());
|
|
800
805
|
if (onCanPlayThrough) {
|
|
801
806
|
onCanPlayThrough.apply(void 0, arguments);
|
|
@@ -809,9 +814,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
809
814
|
}, {
|
|
810
815
|
key: "handlePlaying",
|
|
811
816
|
value: function handlePlaying() {
|
|
812
|
-
var _this$
|
|
813
|
-
actions = _this$
|
|
814
|
-
onPlaying = _this$
|
|
817
|
+
var _this$props12 = this.props,
|
|
818
|
+
actions = _this$props12.actions,
|
|
819
|
+
onPlaying = _this$props12.onPlaying;
|
|
815
820
|
actions.handlePlaying(this.getProperties());
|
|
816
821
|
if (onPlaying) {
|
|
817
822
|
onPlaying.apply(void 0, arguments);
|
|
@@ -822,9 +827,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
822
827
|
}, {
|
|
823
828
|
key: "handlePlay",
|
|
824
829
|
value: function handlePlay() {
|
|
825
|
-
var _this$
|
|
826
|
-
actions = _this$
|
|
827
|
-
onPlay = _this$
|
|
830
|
+
var _this$props13 = this.props,
|
|
831
|
+
actions = _this$props13.actions,
|
|
832
|
+
onPlay = _this$props13.onPlay;
|
|
828
833
|
actions.handlePlay(this.getProperties());
|
|
829
834
|
if (onPlay) {
|
|
830
835
|
onPlay.apply(void 0, arguments);
|
|
@@ -835,9 +840,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
835
840
|
}, {
|
|
836
841
|
key: "handlePause",
|
|
837
842
|
value: function handlePause() {
|
|
838
|
-
var _this$
|
|
839
|
-
actions = _this$
|
|
840
|
-
onPause = _this$
|
|
843
|
+
var _this$props14 = this.props,
|
|
844
|
+
actions = _this$props14.actions,
|
|
845
|
+
onPause = _this$props14.onPause;
|
|
841
846
|
actions.handlePause(this.getProperties());
|
|
842
847
|
if (onPause) {
|
|
843
848
|
onPause.apply(void 0, arguments);
|
|
@@ -851,9 +856,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
851
856
|
}, {
|
|
852
857
|
key: "handleDurationChange",
|
|
853
858
|
value: function handleDurationChange() {
|
|
854
|
-
var _this$
|
|
855
|
-
actions = _this$
|
|
856
|
-
onDurationChange = _this$
|
|
859
|
+
var _this$props15 = this.props,
|
|
860
|
+
actions = _this$props15.actions,
|
|
861
|
+
onDurationChange = _this$props15.onDurationChange;
|
|
857
862
|
actions.handleDurationChange(this.getProperties());
|
|
858
863
|
if (onDurationChange) {
|
|
859
864
|
onDurationChange.apply(void 0, arguments);
|
|
@@ -867,9 +872,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
867
872
|
}, {
|
|
868
873
|
key: "handleProgress",
|
|
869
874
|
value: function handleProgress() {
|
|
870
|
-
var _this$
|
|
871
|
-
actions = _this$
|
|
872
|
-
onProgress = _this$
|
|
875
|
+
var _this$props16 = this.props,
|
|
876
|
+
actions = _this$props16.actions,
|
|
877
|
+
onProgress = _this$props16.onProgress;
|
|
873
878
|
if (this.video) {
|
|
874
879
|
actions.handleProgressChange(this.getProperties());
|
|
875
880
|
}
|
|
@@ -890,11 +895,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
890
895
|
}, {
|
|
891
896
|
key: "displaySubtitle",
|
|
892
897
|
value: function displaySubtitle(marker) {
|
|
893
|
-
var _this$
|
|
894
|
-
markers = _this$
|
|
895
|
-
resetSubtitleData = _this$
|
|
896
|
-
subtitleReadOnly = _this$
|
|
897
|
-
subtitleDataList = _this$
|
|
898
|
+
var _this$props17 = this.props,
|
|
899
|
+
markers = _this$props17.markers,
|
|
900
|
+
resetSubtitleData = _this$props17.resetSubtitleData,
|
|
901
|
+
subtitleReadOnly = _this$props17.subtitleReadOnly,
|
|
902
|
+
subtitleDataList = _this$props17.subtitleDataList;
|
|
898
903
|
var currentSubtitleObj = this.state.currentSubtitleObj;
|
|
899
904
|
if (resetSubtitleData) {
|
|
900
905
|
resetSubtitleData();
|
|
@@ -936,11 +941,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
936
941
|
}, {
|
|
937
942
|
key: "handleEnded",
|
|
938
943
|
value: function handleEnded() {
|
|
939
|
-
var _this$
|
|
940
|
-
loop = _this$
|
|
941
|
-
player = _this$
|
|
942
|
-
actions = _this$
|
|
943
|
-
onEnded = _this$
|
|
944
|
+
var _this$props18 = this.props,
|
|
945
|
+
loop = _this$props18.loop,
|
|
946
|
+
player = _this$props18.player,
|
|
947
|
+
actions = _this$props18.actions,
|
|
948
|
+
onEnded = _this$props18.onEnded;
|
|
944
949
|
if (loop) {
|
|
945
950
|
this.seek(0);
|
|
946
951
|
this.play();
|
|
@@ -957,9 +962,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
957
962
|
}, {
|
|
958
963
|
key: "handleWaiting",
|
|
959
964
|
value: function handleWaiting() {
|
|
960
|
-
var _this$
|
|
961
|
-
actions = _this$
|
|
962
|
-
onWaiting = _this$
|
|
965
|
+
var _this$props19 = this.props,
|
|
966
|
+
actions = _this$props19.actions,
|
|
967
|
+
onWaiting = _this$props19.onWaiting;
|
|
963
968
|
actions.handleWaiting(this.getProperties());
|
|
964
969
|
if (onWaiting) {
|
|
965
970
|
onWaiting.apply(void 0, arguments);
|
|
@@ -973,9 +978,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
973
978
|
}, {
|
|
974
979
|
key: "handleSeeking",
|
|
975
980
|
value: function handleSeeking() {
|
|
976
|
-
var _this$
|
|
977
|
-
actions = _this$
|
|
978
|
-
onSeeking = _this$
|
|
981
|
+
var _this$props20 = this.props,
|
|
982
|
+
actions = _this$props20.actions,
|
|
983
|
+
onSeeking = _this$props20.onSeeking;
|
|
979
984
|
actions.handleSeeking(this.getProperties());
|
|
980
985
|
if (onSeeking) {
|
|
981
986
|
onSeeking.apply(void 0, arguments);
|
|
@@ -989,9 +994,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
989
994
|
}, {
|
|
990
995
|
key: "handleSeeked",
|
|
991
996
|
value: function handleSeeked() {
|
|
992
|
-
var _this$
|
|
993
|
-
actions = _this$
|
|
994
|
-
onSeeked = _this$
|
|
997
|
+
var _this$props21 = this.props,
|
|
998
|
+
actions = _this$props21.actions,
|
|
999
|
+
onSeeked = _this$props21.onSeeked;
|
|
995
1000
|
actions.handleSeeked(this.getProperties());
|
|
996
1001
|
if (onSeeked) {
|
|
997
1002
|
onSeeked.apply(void 0, arguments);
|
|
@@ -1010,9 +1015,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1010
1015
|
}, {
|
|
1011
1016
|
key: "handleSuspend",
|
|
1012
1017
|
value: function handleSuspend() {
|
|
1013
|
-
var _this$
|
|
1014
|
-
actions = _this$
|
|
1015
|
-
onSuspend = _this$
|
|
1018
|
+
var _this$props22 = this.props,
|
|
1019
|
+
actions = _this$props22.actions,
|
|
1020
|
+
onSuspend = _this$props22.onSuspend;
|
|
1016
1021
|
actions.handleSuspend(this.getProperties());
|
|
1017
1022
|
if (onSuspend) {
|
|
1018
1023
|
onSuspend.apply(void 0, arguments);
|
|
@@ -1023,9 +1028,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1023
1028
|
}, {
|
|
1024
1029
|
key: "handleAbort",
|
|
1025
1030
|
value: function handleAbort() {
|
|
1026
|
-
var _this$
|
|
1027
|
-
actions = _this$
|
|
1028
|
-
onAbort = _this$
|
|
1031
|
+
var _this$props23 = this.props,
|
|
1032
|
+
actions = _this$props23.actions,
|
|
1033
|
+
onAbort = _this$props23.onAbort;
|
|
1029
1034
|
actions.handleAbort(this.getProperties());
|
|
1030
1035
|
if (onAbort) {
|
|
1031
1036
|
onAbort.apply(void 0, arguments);
|
|
@@ -1036,9 +1041,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1036
1041
|
}, {
|
|
1037
1042
|
key: "handleEmptied",
|
|
1038
1043
|
value: function handleEmptied() {
|
|
1039
|
-
var _this$
|
|
1040
|
-
actions = _this$
|
|
1041
|
-
onEmptied = _this$
|
|
1044
|
+
var _this$props24 = this.props,
|
|
1045
|
+
actions = _this$props24.actions,
|
|
1046
|
+
onEmptied = _this$props24.onEmptied;
|
|
1042
1047
|
actions.handleEmptied(this.getProperties());
|
|
1043
1048
|
if (onEmptied) {
|
|
1044
1049
|
onEmptied.apply(void 0, arguments);
|
|
@@ -1052,9 +1057,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1052
1057
|
}, {
|
|
1053
1058
|
key: "handleStalled",
|
|
1054
1059
|
value: function handleStalled() {
|
|
1055
|
-
var _this$
|
|
1056
|
-
actions = _this$
|
|
1057
|
-
onStalled = _this$
|
|
1060
|
+
var _this$props25 = this.props,
|
|
1061
|
+
actions = _this$props25.actions,
|
|
1062
|
+
onStalled = _this$props25.onStalled;
|
|
1058
1063
|
actions.handleStalled(this.getProperties());
|
|
1059
1064
|
if (onStalled) {
|
|
1060
1065
|
onStalled.apply(void 0, arguments);
|
|
@@ -1068,10 +1073,10 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1068
1073
|
}, {
|
|
1069
1074
|
key: "handleLoadedMetaData",
|
|
1070
1075
|
value: function handleLoadedMetaData() {
|
|
1071
|
-
var _this$
|
|
1072
|
-
actions = _this$
|
|
1073
|
-
onLoadedMetadata = _this$
|
|
1074
|
-
startTime = _this$
|
|
1076
|
+
var _this$props26 = this.props,
|
|
1077
|
+
actions = _this$props26.actions,
|
|
1078
|
+
onLoadedMetadata = _this$props26.onLoadedMetadata,
|
|
1079
|
+
startTime = _this$props26.startTime;
|
|
1075
1080
|
if (startTime && startTime > 0) {
|
|
1076
1081
|
this.video.currentTime = startTime;
|
|
1077
1082
|
}
|
|
@@ -1088,9 +1093,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1088
1093
|
}, {
|
|
1089
1094
|
key: "handleLoadedData",
|
|
1090
1095
|
value: function handleLoadedData() {
|
|
1091
|
-
var _this$
|
|
1092
|
-
actions = _this$
|
|
1093
|
-
onLoadedData = _this$
|
|
1096
|
+
var _this$props27 = this.props,
|
|
1097
|
+
actions = _this$props27.actions,
|
|
1098
|
+
onLoadedData = _this$props27.onLoadedData;
|
|
1094
1099
|
actions.handleLoadedData(this.getProperties());
|
|
1095
1100
|
if (onLoadedData) {
|
|
1096
1101
|
onLoadedData.apply(void 0, arguments);
|
|
@@ -1104,11 +1109,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1104
1109
|
}, {
|
|
1105
1110
|
key: "handleTimeUpdate",
|
|
1106
1111
|
value: function handleTimeUpdate() {
|
|
1107
|
-
var _this$
|
|
1108
|
-
previewActive = _this$
|
|
1109
|
-
actions = _this$
|
|
1110
|
-
onTimeUpdate = _this$
|
|
1111
|
-
rightMarker = _this$
|
|
1112
|
+
var _this$props28 = this.props,
|
|
1113
|
+
previewActive = _this$props28.player.previewActive,
|
|
1114
|
+
actions = _this$props28.actions,
|
|
1115
|
+
onTimeUpdate = _this$props28.onTimeUpdate,
|
|
1116
|
+
rightMarker = _this$props28.playerSelectedMarker.rightMarker;
|
|
1112
1117
|
|
|
1113
1118
|
//for annotation time updataton for svg
|
|
1114
1119
|
var _this$getTimeData3 = this.getTimeData(this.video.currentTime),
|
|
@@ -1136,9 +1141,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1136
1141
|
}, {
|
|
1137
1142
|
key: "handleRateChange",
|
|
1138
1143
|
value: function handleRateChange() {
|
|
1139
|
-
var _this$
|
|
1140
|
-
actions = _this$
|
|
1141
|
-
onRateChange = _this$
|
|
1144
|
+
var _this$props29 = this.props,
|
|
1145
|
+
actions = _this$props29.actions,
|
|
1146
|
+
onRateChange = _this$props29.onRateChange;
|
|
1142
1147
|
actions.handleRateChange(this.getProperties());
|
|
1143
1148
|
if (onRateChange) {
|
|
1144
1149
|
onRateChange.apply(void 0, arguments);
|
|
@@ -1149,9 +1154,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1149
1154
|
}, {
|
|
1150
1155
|
key: "handleVolumeChange",
|
|
1151
1156
|
value: function handleVolumeChange() {
|
|
1152
|
-
var _this$
|
|
1153
|
-
actions = _this$
|
|
1154
|
-
onVolumeChange = _this$
|
|
1157
|
+
var _this$props30 = this.props,
|
|
1158
|
+
actions = _this$props30.actions,
|
|
1159
|
+
onVolumeChange = _this$props30.onVolumeChange;
|
|
1155
1160
|
actions.handleVolumeChange(this.getProperties());
|
|
1156
1161
|
if (onVolumeChange) {
|
|
1157
1162
|
onVolumeChange.apply(void 0, arguments);
|
|
@@ -1165,9 +1170,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1165
1170
|
}, {
|
|
1166
1171
|
key: "handleError",
|
|
1167
1172
|
value: function handleError() {
|
|
1168
|
-
var _this$
|
|
1169
|
-
actions = _this$
|
|
1170
|
-
onError = _this$
|
|
1173
|
+
var _this$props31 = this.props,
|
|
1174
|
+
actions = _this$props31.actions,
|
|
1175
|
+
onError = _this$props31.onError;
|
|
1171
1176
|
actions.handleError(this.getProperties());
|
|
1172
1177
|
if (onError) {
|
|
1173
1178
|
onError.apply(void 0, arguments);
|
|
@@ -1261,9 +1266,9 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1261
1266
|
}, {
|
|
1262
1267
|
key: "handleSubtitleContainerClick",
|
|
1263
1268
|
value: function handleSubtitleContainerClick() {
|
|
1264
|
-
var _this$
|
|
1265
|
-
actions = _this$
|
|
1266
|
-
player = _this$
|
|
1269
|
+
var _this$props32 = this.props,
|
|
1270
|
+
actions = _this$props32.actions,
|
|
1271
|
+
player = _this$props32.player;
|
|
1267
1272
|
if (player.paused) {
|
|
1268
1273
|
actions.play();
|
|
1269
1274
|
} else {
|
|
@@ -1273,11 +1278,11 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1273
1278
|
}, {
|
|
1274
1279
|
key: "handleSubtitleClick",
|
|
1275
1280
|
value: function handleSubtitleClick(e) {
|
|
1276
|
-
var _this$
|
|
1277
|
-
actions = _this$
|
|
1278
|
-
player = _this$
|
|
1279
|
-
onScreenSubtitleClick = _this$
|
|
1280
|
-
controlType = _this$
|
|
1281
|
+
var _this$props33 = this.props,
|
|
1282
|
+
actions = _this$props33.actions,
|
|
1283
|
+
player = _this$props33.player,
|
|
1284
|
+
onScreenSubtitleClick = _this$props33.onScreenSubtitleClick,
|
|
1285
|
+
controlType = _this$props33.controlType;
|
|
1281
1286
|
var currentSubtitleObj = this.state.currentSubtitleObj;
|
|
1282
1287
|
if (controlType === 'advanced') {
|
|
1283
1288
|
if (onScreenSubtitleClick) {
|
|
@@ -1302,21 +1307,21 @@ var Video = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
1302
1307
|
_this$props$parentAnn2,
|
|
1303
1308
|
_this$props$parentAnn3,
|
|
1304
1309
|
_this$props$parentAnn4;
|
|
1305
|
-
var _this$
|
|
1306
|
-
loop = _this$
|
|
1307
|
-
poster = _this$
|
|
1308
|
-
preload = _this$
|
|
1309
|
-
autoPlay = _this$
|
|
1310
|
-
playsInline = _this$
|
|
1311
|
-
muted = _this$
|
|
1312
|
-
crossOrigin = _this$
|
|
1313
|
-
videoId = _this$
|
|
1314
|
-
fileType = _this$
|
|
1315
|
-
userEmail = _this$
|
|
1316
|
-
theme = _this$
|
|
1317
|
-
player = _this$
|
|
1318
|
-
playerType = _this$
|
|
1319
|
-
markers = _this$
|
|
1310
|
+
var _this$props34 = this.props,
|
|
1311
|
+
loop = _this$props34.loop,
|
|
1312
|
+
poster = _this$props34.poster,
|
|
1313
|
+
preload = _this$props34.preload,
|
|
1314
|
+
autoPlay = _this$props34.autoPlay,
|
|
1315
|
+
playsInline = _this$props34.playsInline,
|
|
1316
|
+
muted = _this$props34.muted,
|
|
1317
|
+
crossOrigin = _this$props34.crossOrigin,
|
|
1318
|
+
videoId = _this$props34.videoId,
|
|
1319
|
+
fileType = _this$props34.fileType,
|
|
1320
|
+
userEmail = _this$props34.userEmail,
|
|
1321
|
+
theme = _this$props34.theme,
|
|
1322
|
+
player = _this$props34.player,
|
|
1323
|
+
playerType = _this$props34.playerType,
|
|
1324
|
+
markers = _this$props34.markers;
|
|
1320
1325
|
var _this$state2 = this.state,
|
|
1321
1326
|
isBuffering = _this$state2.isBuffering,
|
|
1322
1327
|
watermark = _this$state2.watermark,
|