@scarlett-player/ui 1.10.0 → 1.12.0
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/dist/index.cjs +10 -5
- package/dist/index.js +10 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2110,11 +2110,16 @@ var LiveIndicator = class {
|
|
|
2110
2110
|
this.el.setAttribute("aria-label", "Live broadcast - behind live edge, click to seek to live");
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
|
+
/**
|
|
2114
|
+
* Ask core to rejoin the live edge.
|
|
2115
|
+
*
|
|
2116
|
+
* Emits `live:seektolive` rather than seeking to `seekableRange.end`
|
|
2117
|
+
* directly. Core's `seekToLive()` prefers the provider's `liveSyncPosition`,
|
|
2118
|
+
* and under low latency the end of the seekable range is beyond the last
|
|
2119
|
+
* loaded part - seeking there stalls and rebuffers.
|
|
2120
|
+
*/
|
|
2113
2121
|
seekToLive() {
|
|
2114
|
-
|
|
2115
|
-
if (seekableRange) {
|
|
2116
|
-
this.api.emit("playback:seeking", { time: seekableRange.end });
|
|
2117
|
-
}
|
|
2122
|
+
this.api.emit("live:seektolive", void 0);
|
|
2118
2123
|
}
|
|
2119
2124
|
destroy() {
|
|
2120
2125
|
this.el.removeEventListener("click", this.handleClick);
|
|
@@ -3431,7 +3436,7 @@ function resetControlRegistry() {
|
|
|
3431
3436
|
}
|
|
3432
3437
|
|
|
3433
3438
|
// src/version.ts
|
|
3434
|
-
var PKG_VERSION = true ? "1.
|
|
3439
|
+
var PKG_VERSION = true ? "1.12.0" : "0.0.0-dev";
|
|
3435
3440
|
|
|
3436
3441
|
// src/index.ts
|
|
3437
3442
|
var DEFAULT_LAYOUT = [
|
package/dist/index.js
CHANGED
|
@@ -2077,11 +2077,16 @@ var LiveIndicator = class {
|
|
|
2077
2077
|
this.el.setAttribute("aria-label", "Live broadcast - behind live edge, click to seek to live");
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Ask core to rejoin the live edge.
|
|
2082
|
+
*
|
|
2083
|
+
* Emits `live:seektolive` rather than seeking to `seekableRange.end`
|
|
2084
|
+
* directly. Core's `seekToLive()` prefers the provider's `liveSyncPosition`,
|
|
2085
|
+
* and under low latency the end of the seekable range is beyond the last
|
|
2086
|
+
* loaded part - seeking there stalls and rebuffers.
|
|
2087
|
+
*/
|
|
2080
2088
|
seekToLive() {
|
|
2081
|
-
|
|
2082
|
-
if (seekableRange) {
|
|
2083
|
-
this.api.emit("playback:seeking", { time: seekableRange.end });
|
|
2084
|
-
}
|
|
2089
|
+
this.api.emit("live:seektolive", void 0);
|
|
2085
2090
|
}
|
|
2086
2091
|
destroy() {
|
|
2087
2092
|
this.el.removeEventListener("click", this.handleClick);
|
|
@@ -3398,7 +3403,7 @@ function resetControlRegistry() {
|
|
|
3398
3403
|
}
|
|
3399
3404
|
|
|
3400
3405
|
// src/version.ts
|
|
3401
|
-
var PKG_VERSION = true ? "1.
|
|
3406
|
+
var PKG_VERSION = true ? "1.12.0" : "0.0.0-dev";
|
|
3402
3407
|
|
|
3403
3408
|
// src/index.ts
|
|
3404
3409
|
var DEFAULT_LAYOUT = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scarlett-player/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "UI Controls Plugin for Scarlett Player",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"typescript": "^5.3.0",
|
|
30
30
|
"vitest": "^1.6.0",
|
|
31
31
|
"jsdom": "^24.0.0",
|
|
32
|
-
"@scarlett-player/core": "1.
|
|
32
|
+
"@scarlett-player/core": "1.12.0"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
|
35
35
|
"video",
|