@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.cjs
CHANGED
|
@@ -1183,10 +1183,17 @@ var SignalingClient = class {
|
|
|
1183
1183
|
* Realtime captions SSE URL. Same play token as media — the engine's
|
|
1184
1184
|
* `PlayVerifier` gates both, so a viewer who can watch the stream can already
|
|
1185
1185
|
* read its captions with zero extra credential.
|
|
1186
|
+
*
|
|
1187
|
+
* `/api/v1/live/...`, NOT `/live/...`: unlike {@link scalePlaylistUrl}, which
|
|
1188
|
+
* hits the engine's bare `/live/*` media-edge catch-all, captions are mounted
|
|
1189
|
+
* under the versioned control-API group (mebius-stream-engine
|
|
1190
|
+
* internal/api/routes.go) with the play-token middleware, not the proxy.
|
|
1191
|
+
* Copying the media-edge prefix here 401s every request — the catch-all
|
|
1192
|
+
* doesn't recognise the path and never reaches the captions handler at all.
|
|
1186
1193
|
*/
|
|
1187
1194
|
captionsUrl(streamId, lang) {
|
|
1188
1195
|
return this.withToken(
|
|
1189
|
-
`${this.base()}/live/${encodeURIComponent(streamId)}/captions?lang=${encodeURIComponent(lang)}`
|
|
1196
|
+
`${this.base()}/api/v1/live/${encodeURIComponent(streamId)}/captions?lang=${encodeURIComponent(lang)}`
|
|
1190
1197
|
);
|
|
1191
1198
|
}
|
|
1192
1199
|
// Maps a neutral session kind to the concrete signaling path segment. This
|