Skip to Content
Xeonr Developer Docs

Renew playback

POST
/xmb.api.v1.PlaybackService/RenewPlayback

Issues a fresh media token for a running session and records where the player has got to.

Required scopes: xmb:user:read

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string
Length1 <= length <= 128
sessionId?string
Length1 <= length <= 64
positionMs?|

Where the player is now. Under direct play it is what an operator watching the session list sees. Under transcode it is what retargets the encoder after a seek — which is why renewal and retargeting are ONE method: they happen at the same cadence with the same argument, and two methods would give the transcode branch a code path the direct branch never exercises and therefore never tests. int64.gte = 0

Formatint64
paused?boolean

Whether anything is playing. A paused player keeps beating — it is still holding the session, and under transcode it is still holding an encoder — and the distinction is worth an operator's while.

holdTuner?|

Live sessions only: the viewer's answer to a tuner_contention prompt. True keeps the tuner and lets the recording fail; false (or no answer by the recording's start) releases it. Absent means no answer yet.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.PlaybackService/RenewPlayback" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "delivery": "map[contentLength:2147483648 expiresAt:2026-10-22T20:20:00Z gatewayUrl:https://6f1c9d2e-4a3b-4c5d-8e9f-0a1b2c3d4e5f.stream.xmb.gg/media/7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f/file/media.mkv?t=eyJhbGciOiJFZERTQSIsImtpZCI6IjIwMjYtMDgtMDQiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiI2ZjFjOWQyZSJ9.c2lnbmF0dXJlLXBsYWNlaG9sZGVy hubName:nas hubUuid:6f1c9d2e-4a3b-4c5d-8e9f-0a1b2c3d4e5f localUrls:[https://192-168-1-20.k3f9x2ab.xmbsrv.com:8443/media/7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f/file/media.mkv?t=eyJhbGciOiJFZERTQSIsImtpZCI6IjIwMjYtMDgtMDQiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiI2ZjFjOWQyZSJ9.c2lnbmF0dXJlLXBsYWNlaG9sZGVy] mediaToken:eyJhbGciOiJFZERTQSIsImtpZCI6IjIwMjYtMDgtMDQiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiI2ZjFjOWQyZSJ9.c2lnbmF0dXJlLXBsYWNlaG9sZGVy mimeType:video/x-matroska nodeKind:hub playlistStartMs:0 renewAfter:2026-10-22T20:15:30Z strategy:PLAYBACK_STRATEGY_DIRECT]",
  "transcode": "map[encodedToMs:1980000 ended:false retargets:1 segmentsReady:330 speed:3.4]",
  "tunerContention": "map[channelName:BBC One HD decideBy:2026-10-22T22:20:00Z recordingUuid:8a9b0c1d-2e3f-4a5b-8c6d-7e8f9a0b1c2d startsAt:2026-10-22T22:20:00Z title:Match of the Day]"
}