@desynova-digital/player 4.1.3 → 4.1.4
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 +4 -0
- package/package.json +1 -1
package/components/Player.js
CHANGED
|
@@ -783,6 +783,10 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
783
783
|
}, {
|
|
784
784
|
key: "seek",
|
|
785
785
|
value: function seek(time) {
|
|
786
|
+
var pauseOnSeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
787
|
+
if (pauseOnSeek) {
|
|
788
|
+
this.video.pause();
|
|
789
|
+
}
|
|
786
790
|
this.video.seek(time);
|
|
787
791
|
}
|
|
788
792
|
|