@kkcompany/player 1.15.30 → 1.15.32
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/core.js +3 -3
- package/index.esm.js +10 -10
- package/index.js +9 -9
- package/modules.js +1 -1
- package/package.json +1 -1
- package/plugins.js +11 -1
- package/react.js +19 -20
package/core.js
CHANGED
|
@@ -2279,7 +2279,7 @@ const load = async (media, {
|
|
|
2279
2279
|
await tryPatchHlsVideoQualities(player, merged.src);
|
|
2280
2280
|
}
|
|
2281
2281
|
|
|
2282
|
-
player.
|
|
2282
|
+
player.resumePosition = 'initial';
|
|
2283
2283
|
|
|
2284
2284
|
player.reload = () => player.unload().then(() => player.load(merged.src, loadStartTime, merged.type));
|
|
2285
2285
|
|
|
@@ -2320,10 +2320,10 @@ const seek = async (media, {
|
|
|
2320
2320
|
// set again to reflect instantly
|
|
2321
2321
|
|
|
2322
2322
|
if (Math.abs(seekTime) <= LIVE_EDGE_GAP && seekOrigin !== 0) {
|
|
2323
|
-
player.
|
|
2323
|
+
player.resumePosition = 'live';
|
|
2324
2324
|
player.goToLive();
|
|
2325
2325
|
} else {
|
|
2326
|
-
player.
|
|
2326
|
+
player.resumePosition = 'current';
|
|
2327
2327
|
media.currentTime = seekTime + seekOrigin;
|
|
2328
2328
|
}
|
|
2329
2329
|
|