Live Videos

Get information about a live

GET
https://peertube2.cpy.re/api/v1/videos/live/{id}

Parameters

idid | UUIDv4 | shortUUIDrequiredpath

The object id, uuid or short uuid

Response

successful operation

Response fields application/json
rtmpUrlstring

Included in the response if an appropriate token is provided

rtmpsUrlstring

Included in the response if an appropriate token is provided

streamKeystring

RTMP stream key to use to stream into this live video. Included in the response if an appropriate token is provided

saveReplayboolean
Show child attributes
privacyVideoPrivacySet12345

privacy id of the video (see /videos/privacies)

permanentLiveboolean

User can stream multiple times in a permanent live

latencyModeLiveVideoLatencyMode

User can select live latency mode if enabled by the instance

Show child attributes

The live latency mode (Default = 1, High latency = 2, Small Latency = 3)

LiveVideoLatencyMode123
Show child attributes
startAtstring<date-time>

Date when the stream is scheduled to air at

Authorization

OAuth2oauth2

Authenticating via OAuth requires the following steps:

  • Have an activated account
  • Generate an access token for that account at /api/v1/users/token.
  • Make requests with the Authorization: Bearer <token> header
  • Profit, depending on the role assigned to the account

Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.