@desynova-digital/player 3.13.15 → 3.13.16

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.
@@ -552,13 +552,17 @@ var Video = /*#__PURE__*/function (_Component) {
552
552
  key: "seek",
553
553
  value: function seek(time) {
554
554
  try {
555
- var updatedTime = this.handleAdjustingVideoAsPerFrame(time);
555
+ var updatedTime = 0;
556
+ if (time < 0) {
557
+ updatedTime = 0;
558
+ } else {
559
+ updatedTime = time > this.video.duration ? this.video.duration : this.handleAdjustingVideoAsPerFrame(time);
560
+ }
556
561
  this.video.currentTime = updatedTime;
557
562
  } catch (e) {
558
563
  // console.log(e, 'Video is not ready.')
559
564
  }
560
565
  }
561
-
562
566
  // jump forward x seconds
563
567
  }, {
564
568
  key: "forward",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "3.13.15",
3
+ "version": "3.13.16",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {