If you don't find an answer, please click here to post your question.

Retrieving the URL for HLS streams in a Universal Feed

0 Kudos
Started ‎06-05-2017 by
Modified ‎06-05-2017 by

Retrieving the URL for HLS streams in a Universal Feed

by Community Manager on ‎06-05-2017 10:52 AM (177 Views)

Use the following code to retrieve the HLS streams from a Universal Feed:

<items>
{% for asset in assets %}
<item>
<title> {{asset.name}} </title>
<labels>
{% for label in asset.labels %}
<label>
<id>{{label.id}}</id>
<fullname>{{label.full_name}}</fullname>
<name>{{label.name}}</name>
</label>
{% endfor %}
</labels>
{% for stream in asset.streams%}
{% if stream.container == "TS" %}
<stream>{{stream.url}}</stream>
{% endif %}
{% endfor %}
</item>
{% endfor %}
</items>