Skip to main contentIBM Video Streaming Developers

Live Playlist

Get a list of Live playlists

GET /channels/{channelId}/live-playlists.json

Example request with CURL:

curl -X GET\
-H "Accept: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists.json"

Parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID

Success response

Upon success, a set of key-value pairs is returned under a live_playlists element.

PARAMETERTYPEDESCRIPTION
idstring
is_liveboolean
total_durationinteger
titlestring
is_replayboolean
loopboolean
is_enabledboolean
video_idsarray of integers
scheduling.fromintegerUnix timestamp (UTC). Must be in the future.
scheduling.tointegerUnix timestamp (UTC). Must be larger then from.
pager.previousstringPrevious page URL
pager.nextstringNext page URL
pager.page_countintegerNumber of pages
pager.item_countintegerNumber of items

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorized
403 Forbidden
500 Server error

Create a new Live playlist

POST /channels/{channelId}/live-playlists.json

Example request with CURL:

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists.json"

Parameters

Path parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID

Body parameters

PARAMETERTYPEIMPORTANCE
titlestringREQUIRED
is_replaybooleanREQUIRED
loopbooleanREQUIRED
is_enabledbooleanREQUIRED
video_idsarray of integersREQUIRED
scheduling.fromintegerREQUIRED
scheduling.tointeger

Success response

PARAMETERTYPEIMPORTANCE
titlestringREQUIRED
is_replaybooleanREQUIRED
loopbooleanREQUIRED
is_enabledbooleanREQUIRED
video_idsarray of integersREQUIRED
scheduling.fromintegerREQUIRED
scheduling.tointeger

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUE
400 Bad request{errors:[{field: string, error: string}]
401 Unauthorized
403 Forbidden
409 Conflict{error: string, hint: string}
500 Server error

Get a Live playlist

GET /channels/{channelId}/live-playlists/{id}.json

Example request with CURL:

curl \
-X GET\
-H "Accept: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists/{id}.json"

Parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID
idstringREQUIREDLive Playlist ID

Success response

Upon success a response with HTTP status “200 OK” is returned.

PARAMETERTYPEDESCRIPTION
idstring
is_liveboolean
total_durationinteger
titlestring
is_replayboolean
loopboolean
is_enabledboolean
video_idsarray of integers
scheduling.frominteger
scheduling.tointeger

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorized
403 Forbidden
404 Not Found
500 Server error

Modify a live playlist

PUT /channels/{channelId}/live-playlists/{id}.json

Example request with CURL:

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists/{id}.json"

Parameters

Path parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID
idstringREQUIREDLive Playlist ID

Body parameters

PARAMETERTYPEIMPORTANCE
titlestringREQUIRED
is_replaybooleanREQUIRED
loopbooleanREQUIRED
is_enabledbooleanREQUIRED
video_idsarray of integersREQUIRED
scheduling.fromintegerREQUIRED
scheduling.tointeger

Success response

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUE
204 No content
400 Bad request{errors:[{field: string, error: string}]
401 Unauthorized
403 Forbidden
404 Not Found
409 Conflict{error: string, hint: string}
500 Server error

Delete a Live playlist

DELETE /channels/{channelId}/live-playlists/{id}.json

Example request with CURL:

curl \
-X DELETE\
-H "Accept: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists/{id}.json"

Parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID
idstringREQUIREDLive Playlist ID

Responses

Success response

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
204 No content
401 Unauthorized
403 Forbidden
404 Not Found
409 Conflict{Required: error error: string, hint: string}
500 Server error

Get the currently live playlist

GET /channels/{channelId}/live-playlists/live.json

Example request with CURL:

curl -X GET\
-H "Accept: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists/live.json"

Parameters

Path parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID

Success response

Upon success a response with HTTP status “200 OK” is returned.

PARAMETERTYPEDESCRIPTION
idstring
is_liveboolean
total_durationinteger
titlestring
is_replayboolean
loopboolean
is_enabledboolean
video_idsarray of integers
scheduling.frominteger
scheduling.tointeger

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorized
403 Forbidden
404 Not Found
500 Server error

Go live with the playlist

PUT /channels/{channelId}/live-playlists/live/{id}.json

Example request with CURL:

curl -X PUT\
-H "Accept: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists/live/{id}.json"

Parameters

Path parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID
idstringREQUIREDLive Playlist ID

Success response

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
204 No content
401 Unauthorized
403 Forbidden
404 Not Found
409 Conflict{Required: error error: string, hint: string}
500 Server error

Stop streaming the playlist

DELETE /channels/{channelId}/live-playlists/live/{id}.json

Example request with CURL:

curl \
-X DELETE\
-H "Accept: application/json"\
"https://api.video.ibm.com/channels/{channelId}/live-playlists/live/{id}.json"

Parameters

Path parameters

PARAMETERTYPEIMPORTANCEDESCRIPTION
channelIdstringREQUIREDChannel ID
idstringREQUIREDLive Playlist ID

Responses

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUE
204 No content
401 Unauthorized
403 Forbidden
404 Not Found
409 Conflict{error: string, hint: string}
500 Server error