@desynova-digital/player 3.6.0 → 3.7.2
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 +2 -2
- package/components/Video.js +0 -5
- package/package.json +1 -1
package/components/Player.js
CHANGED
|
@@ -290,9 +290,9 @@ var Player = function (_Component) {
|
|
|
290
290
|
}
|
|
291
291
|
}, {
|
|
292
292
|
key: 'onSegmentClick',
|
|
293
|
-
value: function onSegmentClick(start_time, end_time) {
|
|
293
|
+
value: function onSegmentClick(start_time, end_time, seek) {
|
|
294
294
|
this.actions.handleMarkerUpdate(start_time, end_time);
|
|
295
|
-
this.actions.play();
|
|
295
|
+
seek ? this.actions.pause() : this.actions.play();
|
|
296
296
|
this.actions.handleVideoRewind(false);
|
|
297
297
|
this.actions.seek(start_time);
|
|
298
298
|
this.actions.handleVideoPreview(true);
|
package/components/Video.js
CHANGED
|
@@ -551,7 +551,6 @@ var Video = function (_Component) {
|
|
|
551
551
|
key: 'forward',
|
|
552
552
|
value: function forward(seconds) {
|
|
553
553
|
this.seek(this.video.currentTime + seconds);
|
|
554
|
-
this.displaySubtitle();
|
|
555
554
|
}
|
|
556
555
|
|
|
557
556
|
// jump back x seconds
|
|
@@ -560,7 +559,6 @@ var Video = function (_Component) {
|
|
|
560
559
|
key: 'replay',
|
|
561
560
|
value: function replay(seconds) {
|
|
562
561
|
this.forward(-seconds);
|
|
563
|
-
this.displaySubtitle();
|
|
564
562
|
}
|
|
565
563
|
|
|
566
564
|
// enter or exist full screen
|
|
@@ -706,7 +704,6 @@ var Video = function (_Component) {
|
|
|
706
704
|
if (onDurationChange) {
|
|
707
705
|
onDurationChange.apply(undefined, arguments);
|
|
708
706
|
}
|
|
709
|
-
this.displaySubtitle();
|
|
710
707
|
}
|
|
711
708
|
|
|
712
709
|
/*
|
|
@@ -728,7 +725,6 @@ var Video = function (_Component) {
|
|
|
728
725
|
if (onProgress) {
|
|
729
726
|
onProgress.apply(undefined, arguments);
|
|
730
727
|
}
|
|
731
|
-
this.displaySubtitle();
|
|
732
728
|
}
|
|
733
729
|
}, {
|
|
734
730
|
key: 'getSubtitleStyle',
|
|
@@ -828,7 +824,6 @@ var Video = function (_Component) {
|
|
|
828
824
|
if (onSeeking) {
|
|
829
825
|
onSeeking.apply(undefined, arguments);
|
|
830
826
|
}
|
|
831
|
-
this.displaySubtitle();
|
|
832
827
|
}
|
|
833
828
|
|
|
834
829
|
/*
|