There are multiple list formats with which you can share large sets of content both live and on-demand content. TV Online Univ supports 3 types of formats: own xml, m3u and w3u.
XML propio
This is the first format that the app supports. It is only accepted when it is accessible from the internet to be able to synchronize every 24 hours. The structure is as follows:
<?xml version=”1.0″ encoding=”utf-8″?>
<listado>
<canal>
<titulo>channel 1</titulo>
<url>http://domain.com/path/name.mp4</url>
</canal>
<canal>
<titulo>channel 2</titulo>
<url>http://domain2.com/path2/name3.mp4</url>
</canal>
</listado>
Each multimedia content that you want to add, you must add the content that <canal>…</canal> specifying in title the name and in URL the address where it is accessible.
M3U
This format is used by many applications. Both online synchronization is supported as well as read from a file. This is the structure:
#EXTM3U
#EXTINF:-1 tvg-logo=”http://dominio.com/logo.png” group-title=”Category”, Name channel
http://dominio.com/video.mp4
The two lines are always repeated, the first one containing the logo information, category and channel name. In the second is the one containing the video url.
W3U Wiseplay
This format emerged as an improvement of m3u, has more information and allows to build more complex classifications. The structure is as follows:
{
“name”: “Tutorial w3u”,
“author”: “w3u format”,
“url”: “”,
“groups”: [
{
“name”: “”,
“image”: “”,
“stations”:
[
{
“name”: “”,
“image”: “”,
“url”: “”,
“subtitle”: “”
},
{
“name”: “”,
“image”: “”,
“url”: “”
}
]
},
{
“name”: “Live”,
“image”: “”,
“stations”:
[
{
“name”: “”,
“image”: “”,
“url”: “”
},
{
“name”: “”,
“image”: “”,
“url”: “”,
“isHost”: true
},
{
“name”: “”,
“image”: “”,
“url”: “”
}
]
}
]
}