place.stream.playback.getPlaybackSession
Lexicon Version: 1
Definitions
Section titled “Definitions”Type: query
Mint the caller’s own playback session for their live stream. Every playback URL carries a signed session as sid; the anonymous one a playlist hands out opens published streams only, while the owner session this returns also opens the caller’s unpublished (pre-live) stream to their own player. Requires an authenticated session; the result is bound to the caller’s DID and network address, opens the pre-live stream only from that address and never to a page on another site, and is never renewed. A pre-live stream plays to one owner session at a time: the newest one used takes over, and older ones get PlaybackStartedElsewhere. Pass it as sid on getLivePlaylist or whep.
Parameters: (None defined)
Output:
- Encoding:
application/json - Schema:
Schema Type: object
| Name | Type | Req’d | Description | Constraints |
|---|---|---|---|---|
sid |
string |
✅ | The signed session to pass as the sid query parameter. |
|
expiresAt |
string |
✅ | When the session stops opening the stream; it is not renewed, so fetch a new one before then (or when the client’s address changes). | Format: datetime |
Lexicon Source
Section titled “Lexicon Source”{ "lexicon": 1, "id": "place.stream.playback.getPlaybackSession", "defs": { "main": { "type": "query", "description": "Mint the caller's own playback session for their live stream. Every playback URL carries a signed session as `sid`; the anonymous one a playlist hands out opens published streams only, while the owner session this returns also opens the caller's unpublished (pre-live) stream to their own player. Requires an authenticated session; the result is bound to the caller's DID and network address, opens the pre-live stream only from that address and never to a page on another site, and is never renewed. A pre-live stream plays to one owner session at a time: the newest one used takes over, and older ones get PlaybackStartedElsewhere. Pass it as `sid` on getLivePlaylist or whep.", "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["sid", "expiresAt"], "properties": { "sid": { "type": "string", "description": "The signed session to pass as the `sid` query parameter." }, "expiresAt": { "type": "string", "format": "datetime", "description": "When the session stops opening the stream; it is not renewed, so fetch a new one before then (or when the client's address changes)." } } } } } }}