@desynova-digital/player 3.7.0 → 3.7.3

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.
@@ -292,9 +292,7 @@ var Player = function (_Component) {
292
292
  key: 'onSegmentClick',
293
293
  value: function onSegmentClick(start_time, end_time, seek) {
294
294
  this.actions.handleMarkerUpdate(start_time, end_time);
295
- if (!seek) {
296
- this.actions.play();
297
- }
295
+ seek ? this.actions.pause() : this.actions.play();
298
296
  this.actions.handleVideoRewind(false);
299
297
  this.actions.seek(start_time);
300
298
  this.actions.handleVideoPreview(true);
@@ -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',
@@ -755,7 +751,7 @@ var Video = function (_Component) {
755
751
  if (currentMarker && currentMarker[0] && currentMarker[0].name === "Subtitle") {
756
752
  var values = currentMarker[0].values;
757
753
  var currentValue = values.filter(function (ele) {
758
- return ele.in_time <= currentTime && ele.out_time >= currentTime;
754
+ return ele.start_time <= currentTime && ele.end_time >= currentTime;
759
755
  });
760
756
  var style = this.getSubtitleStyle(currentValue[0]);
761
757
  this.setState({
@@ -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
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.7.0",
3
+ "version": "3.7.3",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {