Viz Multichannel
Version 4.2 | Published July 31, 2020 ©
POST Playlist to Channel (Version 2.0)
Post a playlist to a channel. For normal installations a single continuous playlist is the recommended approach.
Syntax
POST /api/channels/test/playlists
Request - Continuous Playlist
POST /api/channels/test/playlists HTTP/
1.1
Content-Type: application/atom+xml; type=entry
<atom:entry xmlns:vaext=
"http://www.vizrt.com/atom-ext"
xmlns:vizid=
"http://www.vizrt.com/opensearch/vizid"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:inthub=
"http://www.vizrt.com/integrationshub"
xmlns=
"http://www.w3.org/2007/app"
xmlns:atom=
"http://www.w3.org/2005/Atom"
>
<inthub:name>continuous</inthub:name>
<atom:id>continuous</atom:id>
<atom:meta_data />
<inthub:description>Continuous Playlist</inthub:description>
<inthub:last_taken_element />
<inthub:broadcastDate>continuous</inthub:broadcastDate>
</atom:entry>
Response
HTTP/
1.1
201
Created
Content-Type: application/atom+xml; type=entry
<atom:entry xmlns:vaext=
"http://www.vizrt.com/atom-ext"
xmlns:vizid=
"http://www.vizrt.com/opensearch/vizid"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:inthub=
"http://www.vizrt.com/integrationshub"
xmlns=
"http://www.w3.org/2007/app"
xmlns:atom=
"http://www.w3.org/2005/Atom"
>
<inthub:name>continuous</inthub:name>
<atom:id>continuous</atom:id>
<atom:link rel=
"self"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous"
/>
<atom:link rel=
"edit"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous"
/>
<atom:link rel=
"refresh"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous/refresh"
/>
<atom:link rel=
"primaryevents"
type=
"application/atom+xml; type=feed"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous/primaryevents"
/>
<atom:link rel=
"state"
type=
"application/atom+xml; type=feed"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/continuous/state"
/>
<atom:meta_data />
<inthub:description>Continuous Playlist</inthub:description>
<inthub:broadcastDate>continuous</inthub:broadcastDate>
<inthub:import_file />
<inthub:primaryevents />
</atom:entry>
If a date-set or playlist for other use is required, see the following example:
Request - Date Set Playlist
POST /api/channels/test/playlists HTTP/
1.1
Content-Type: application/atom+xml; type=entry
<atom:entry xmlns:vaext=
"http://www.vizrt.com/atom-ext"
xmlns:vizid=
"http://www.vizrt.com/opensearch/vizid"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:inthub=
"http://www.vizrt.com/integrationshub"
xmlns=
"http://www.w3.org/2007/app"
xmlns:atom=
"http://www.w3.org/2005/Atom"
>
<inthub:name>testplaylist</inthub:name>
<atom:id>testplaylist</atom:id>
<atom:meta_data />
<inthub:description>Playlist
for
2019
-
12
-
01
</inthub:description>
<inthub:last_taken_element />
<inthub:broadcastDate>
2019
-
12
-
01
</inthub:broadcastDate>
</atom:entry>
Response
HTTP/
1.1
201
Created
Content-Type: application/atom+xml; type=entry
<atom:entry xmlns:vaext=
"http://www.vizrt.com/atom-ext"
xmlns:vizid=
"http://www.vizrt.com/opensearch/vizid"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:inthub=
"http://www.vizrt.com/integrationshub"
xmlns=
"http://www.w3.org/2007/app"
xmlns:atom=
"http://www.w3.org/2005/Atom"
>
<inthub:name>testplaylist</inthub:name>
<atom:id>testplaylist</atom:id>
<atom:link rel=
"self"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/testplaylist"
/>
<atom:link rel=
"edit"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/testplaylist"
/>
<atom:link rel=
"refresh"
type=
"application/atom+xml; type=entry"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/testplaylist/refresh"
/>
<atom:link rel=
"primaryevents"
type=
"application/atom+xml; type=feed"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/testplaylist/primaryevents"
/>
<atom:link rel=
"state"
type=
"application/atom+xml; type=feed"
href=
"http://127.0.0.1:9991/api/channels/test/playlists/testplaylist/state"
/>
<atom:meta_data />
<inthub:description>Playlist
for
2019
-
12
-
01
</inthub:description>
<inthub:broadcastDate>
2019
-
12
-
01
</inthub:broadcastDate>
<inthub:import_file />
<inthub:primaryevents />
</atom:entry>
Note
It is possible to post multiple playlists at the same time by wrapping the payload of entries in an atom-feed structure.