@mebius-io/web 0.5.0 → 0.5.1
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 +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.global.js +8 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -262,6 +262,13 @@ declare class SignalingClient {
|
|
|
262
262
|
* Realtime captions SSE URL. Same play token as media — the engine's
|
|
263
263
|
* `PlayVerifier` gates both, so a viewer who can watch the stream can already
|
|
264
264
|
* read its captions with zero extra credential.
|
|
265
|
+
*
|
|
266
|
+
* `/api/v1/live/...`, NOT `/live/...`: unlike {@link scalePlaylistUrl}, which
|
|
267
|
+
* hits the engine's bare `/live/*` media-edge catch-all, captions are mounted
|
|
268
|
+
* under the versioned control-API group (mebius-stream-engine
|
|
269
|
+
* internal/api/routes.go) with the play-token middleware, not the proxy.
|
|
270
|
+
* Copying the media-edge prefix here 401s every request — the catch-all
|
|
271
|
+
* doesn't recognise the path and never reaches the captions handler at all.
|
|
265
272
|
*/
|
|
266
273
|
captionsUrl(streamId: string, lang: string): string;
|
|
267
274
|
private pathFor;
|
package/dist/index.d.ts
CHANGED
|
@@ -262,6 +262,13 @@ declare class SignalingClient {
|
|
|
262
262
|
* Realtime captions SSE URL. Same play token as media — the engine's
|
|
263
263
|
* `PlayVerifier` gates both, so a viewer who can watch the stream can already
|
|
264
264
|
* read its captions with zero extra credential.
|
|
265
|
+
*
|
|
266
|
+
* `/api/v1/live/...`, NOT `/live/...`: unlike {@link scalePlaylistUrl}, which
|
|
267
|
+
* hits the engine's bare `/live/*` media-edge catch-all, captions are mounted
|
|
268
|
+
* under the versioned control-API group (mebius-stream-engine
|
|
269
|
+
* internal/api/routes.go) with the play-token middleware, not the proxy.
|
|
270
|
+
* Copying the media-edge prefix here 401s every request — the catch-all
|
|
271
|
+
* doesn't recognise the path and never reaches the captions handler at all.
|
|
265
272
|
*/
|
|
266
273
|
captionsUrl(streamId: string, lang: string): string;
|
|
267
274
|
private pathFor;
|
package/dist/index.global.js
CHANGED
|
@@ -43759,10 +43759,17 @@ Schedule: ${scheduleItems.map((seg) => segmentToString(seg))} pos: ${this.timeli
|
|
|
43759
43759
|
* Realtime captions SSE URL. Same play token as media — the engine's
|
|
43760
43760
|
* `PlayVerifier` gates both, so a viewer who can watch the stream can already
|
|
43761
43761
|
* read its captions with zero extra credential.
|
|
43762
|
+
*
|
|
43763
|
+
* `/api/v1/live/...`, NOT `/live/...`: unlike {@link scalePlaylistUrl}, which
|
|
43764
|
+
* hits the engine's bare `/live/*` media-edge catch-all, captions are mounted
|
|
43765
|
+
* under the versioned control-API group (mebius-stream-engine
|
|
43766
|
+
* internal/api/routes.go) with the play-token middleware, not the proxy.
|
|
43767
|
+
* Copying the media-edge prefix here 401s every request — the catch-all
|
|
43768
|
+
* doesn't recognise the path and never reaches the captions handler at all.
|
|
43762
43769
|
*/
|
|
43763
43770
|
captionsUrl(streamId, lang) {
|
|
43764
43771
|
return this.withToken(
|
|
43765
|
-
`${this.base()}/live/${encodeURIComponent(streamId)}/captions?lang=${encodeURIComponent(lang)}`
|
|
43772
|
+
`${this.base()}/api/v1/live/${encodeURIComponent(streamId)}/captions?lang=${encodeURIComponent(lang)}`
|
|
43766
43773
|
);
|
|
43767
43774
|
}
|
|
43768
43775
|
// Maps a neutral session kind to the concrete signaling path segment. This
|