Playlists are are collection of VoD assets that can be used to create the input for Serverside.ai VoD channels. Additionally the playlist items can hold the information for ad markers.
If you want to have pre roll ads simply create a ad with the start position at 0 seconds.
Create and read playlists
/playlists
GET
https://admin.serverside.ai/api/v2/playlists
Listing all playlists
Query Parameters
200
Copy [
{
"status": "enabled",
"name": "Example Playlist",
"type": "vod2live",
"startDate": "2020-05-24T14:02",
"contents": [
{
"sourceType": "url",
"spliceType": "seconds",
"cuePoints": [
{
"spliceTime": 30,
"maxAds": 1,
"maxDuration": 30
},
]
}
],
"createdBy": "test@nowtilus.tv",
"createdAt": "2020-05-19T12:01:12.660Z",
"tenant": "Nowtilus GmbH",
"modifiedAt": "2020-05-24T11:28:22.071Z",
"modifiedBy": "made_up_inc7@ingo-eichhorst.de"
}
]
/playlists
POST
https://admin.serverside.ai/api/v2/playlists
Create a playlist
Path Parameters
Request Body
200
Copy {
"status": "enabled",
"id": "7451079a-870c-4e64-9915-8f5d07b4edc6",
"name": "Example Playlist",
"type": "vod2live",
"startDate": "2020-05-24T14:02",
"contents": [
{
"sourceType": "url",
"spliceType": "seconds",
"cuePoints": [
{
"spliceTime": 30,
"maxAds": 1,
"maxDuration": 30
},
]
}
],
"createdBy": "test@nowtilus.tv",
"createdAt": "2020-05-19T12:01:12.660Z",
"tenant": "Nowtilus GmbH",
"modifiedAt": "2020-05-24T11:28:22.071Z",
"modifiedBy": "made_up_inc7@ingo-eichhorst.de"
}
/playlists/:id
GET
https://admin.serverside.ai/api/v2/playlists/:id
Retrieve a playlist entry
Path Parameters
Query Parameters
200
Copy {
"status": "enabled",
"id": "7451079a-870c-4e64-9915-8f5d07b4edc6",
"name": "Example Playlist",
"type": "vod2live",
"startDate": "2020-05-24T14:02",
"contents": [
{
"sourceType": "url",
"spliceType": "seconds",
"cuePoints": [
{
"spliceTime": 30,
"maxAds": 1,
"maxDuration": 30
},
]
}
],
"createdBy": "test@nowtilus.tv",
"createdAt": "2020-05-19T12:01:12.660Z",
"tenant": "Nowtilus GmbH",
"modifiedAt": "2020-05-24T11:28:22.071Z",
"modifiedBy": "test@nowtilus.tv"
}
/playlists/:id
PUT
https://admin.serverside.ai/api/v2/playlists/:id
Update one playlist entry
Path Parameters
Request Body
200
Copy {
"status": "enabled",
"id": "7451079a-870c-4e64-9915-8f5d07b4edc6",
"name": "Example Playlist",
"type": "vod2live",
"startDate": "2020-05-24T14:02",
"contents": [
{
"sourceType": "url",
"spliceType": "seconds",
"cuePoints": [
{
"spliceTime": 30,
"maxAds": 1,
"maxDuration": 30
},
]
}
],
"createdBy": "test@nowtilus.tv",
"createdAt": "2020-05-19T12:01:12.660Z",
"tenant": "Nowtilus GmbH",
"modifiedAt": "2020-05-24T11:28:22.071Z",
"modifiedBy": "test@nowtilus.tv"
}
/playlists/:id
DELETE
https://admin.serverside.ai/api/v2/playlists/:id
Delete one playlist entry
Path Parameters
Auto-Generate a playlist
As a shortcut you do not necessarily need to create a database entry in order to support a simple playlist.
/playlists/generate
GET
http://admin.serverside.ai/api/unsecured-v2/playlists/generate
Automatically
Query Parameters
200
Copy <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:ad="http://admin.serverside.ai/mrss/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Generated Playlist</title>
<link>https://admin.serverside.ai</link>
<description>Generated Playlist</description>
<item>
<title>url</title>
<media:category>content</media:category>
<media-content url="http.mpd" type="application/vnd.apple.mpegurl"></media-content>
<ad:cuepoints>
<cuepoint id="adpod-0">
<splicetime>0</splicetime>
<maxcount>2</maxcount>
<duration>20</duration>
</cuepoint>
</ad:cuepoints>
</item>
</channel>
</rss>