live-sources

PATCH /api/live-sources/{id}

Changed on

Rename a source, switch it off, change where it is pulled from, or delete it.

A disabled source refuses every encoder and reader, and can't be given to a video. Setting a pull address revokes the source's encoder keys. Neither switching off nor changing how the signal comes in is allowed while a live airing of the source is coming. Only a source no programme has ever used can be deleted (see canDelete); its keys go with it.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

idinteger required

Request body

namestring
enabledboolean
logoPosition'top-right' | 'stortinget-clock'
  • top-right - Øverst til høyre
  • stortinget-clock - Rundt Stortingets klokke
pullUrlstring

An address Frikanalen pulls this source from (srt://, rtmp(s)://, rtsp(s)://, or https:// for HLS), instead of an encoder pushing to it. Empty makes it a pushed source again. Never returned; see pull_target.

Response

idinteger required
namestring required
enabledboolean
logoPosition'top-right' | 'stortinget-clock'
  • top-right - Øverst til høyre
  • stortinget-clock - Rundt Stortingets klokke
isPulledboolean required
pullTargetstring required

Scheme, host and port of the pull address.

encoderCountinteger required

Encoders that hold a key to this source. A pushed source with none cannot receive a signal.

canDeleteboolean required

A source no programme has ever used can be deleted; one that has stays, and can be switched off.

streamIdstring uuid required
contributionPathstring required
previewPathstring required

Changes

    • breaking

      added to the oneOf[#/components/schemas/LiveSourcesPartialUpdateValidationError]/errors/items response property oneOf list for the response status

    • info

      added the new optional request property logoPosition

    • info

      added the optional property logoPosition to the response with the status

    1 more change in this revision