@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.
- package/components/Video.js +6 -2
- package/package.json +1 -1
package/components/Video.js
CHANGED
|
@@ -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 =
|
|
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",
|