Linking up Video Library

Thanks to Nested Playlists System realized in SS IPTV, you can create for your users complicated hierarchical structures that includes transitions from one playlist to another. This structures may be useful for organization of Video Library or TV Program Archive.

In this article there will be described, how using nested playlists to link up your Video Library. For this purpose you will probably need attributes tvg-logo and description as well as directives #EXTSIZE and #EXTBG described in article About M3U.

The main difference of the root playlist of Video Library from usual playlist is that its items refer not to video streams but to other playlists. In order to tell the app that the item is the link to playlist (not to the stream), use type attribute with a value playlist.

Note, if url refers to the file with extension m3u or xspf, there is no need to use type attribute. The app will define item's type automatically.

Thus the root playlist of your Video Library can look similar way:

#EXTINF:0 type="playlist", 2015
#EXTINF:0 type="playlist", 2010-2014
#EXTINF:0 type="playlist", A-Z
#EXTINF:0 type="playlist", Documentary
#EXTINF:0 type="playlist", Drama
#EXTINF:0 type="playlist", Comedy
#EXTINF:0 type="playlist", TV Series
#EXTINF:0 type="playlist", Triller
#EXTINF:0 type="playlist", Horror
#EXTINF:0 type="playlist", Fiction

This playlist will look in the app such a way:

Let's make use of tvg-logo attribute and #EXTSIZE directive to make our playlist more visual:

#EXTINF:0 type="playlist", 2015
#EXTSIZE: Medium
#EXTINF:0 type="playlist", 2010-2014
#EXTSIZE: Medium
#EXTINF:0 type="playlist", A-Z
#EXTSIZE: Medium
#EXTINF:0 tvg-logo="", documentary
#EXTINF:0 tvg-logo="", Drama
#EXTINF:0 tvg-logo="", Comedy
#EXTINF:0 tvg-logo="", TV Series
#EXTINF:0 tvg-logo="", Triller
#EXTINF:0 tvg-logo="", Horror
#EXTINF:0 tvg-logo="", Fiction

Modified in such a way playlist will look so:

Below-level playlists may contain links as to specified streams, as to another playlists-subsections, creating in this way cataloguized structure. Let's consider possible example of end-file fantastic.m3u:

#EXTM3U size="medium"
#EXTINF:0 tvg-logo="" type="video" description="2014", Edge of Tomorrow
#EXTINF:0 tvg-logo="" type="video" description="2005", Flightplan
#EXTINF:0 tvg-logo="" type="video" description="1997", Gattaca
#EXTINF:0 tvg-logo="" type="video" description="2003", Identity
#EXTINF:0 tvg-logo="" type="video" description="2014", Interstellar
#EXTINF:0 tvg-logo="" type="video" description="2010", Inception
#EXTINF:0 tvg-logo="" type="video" description="2001", K-PAX
#EXTINF:0 tvg-logo="" type="video" description="1999", Matrix
#EXTINF:0 tvg-logo="" type="video" description="2002", The Bourne Identity
#EXTINF:0 tvg-logo="" type="video" description="2004", The Butterfly Effect
#EXTINF:0 tvg-logo="" type="video" description="2008", The Curious Case of Benjamin Button
#EXTINF:0 tvg-logo="" type="video" description="2008", The Dark Knight
#EXTINF:0 tvg-logo="" type="video" description="2012", The Dark Knight Rises
#EXTINF:0 tvg-logo="" type="video" description="1997", The Fifth Element

The attribute size at header directive #EXTM3U defines default size for all the tiles of this playlist. Of course, it's possible to vary size instead, using this parameter, for example, to mark most popular films. Type attribute tells the app that the items of the playlist refer to VoD, i.e. these streams may be paused or rewinded on Playback Screen. This attribute is not mandatory but we recomend it to use to avoid any ambiguity.

Be very careful using in large playlists (hundreds of items) tvg-logo attribute. Its value musn't be full-size pictures as theirs synchronous loading may be the cause of "Our of memory" failure and the app's abortion.

Playlist fantastic.m3u described above will look so:

We use cookies to improve our website and your experience when using it. To find out more about the cookies we use and how to delete them, see our Privacy Policy. I accept cookies from this site