Results for:

Suppor Center

Playlist API

Playlist API

List Video Playlist Loop

List Video Playlist Loop

The method GetPlaylistLoopAllVideo retrieve the list of the videos programmed into a playlist loop, with the current video (On Air) on the top. The list contains even the next start date of every programmed video.

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <GetPlaylistLoopAllVideo>
        <token>MY_API_KEY</token>
        <playlistLoopContentId>Gb2xm12f</playlistLoopContentId>
    </GetPlaylistLoopAllVideo
                
{
    "token": "MY_API_KEY"
    "playlistLoopContentId": "Gb2xm12f"
}
                

Parameters

token Specify your MainStreaming API KEY
playlistLoopContentId Specify the contentID of the playlist you want to get.
<ArrayOfPlaylistVideoDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <PlaylistVideoDTO>
        <contentId>abcdefg</contentId>
        <duration>PT13M20S</duration>
        <durationLong>800</durationLong>     
        <filename>filename.mp4</filename>
        <nextDate>2013-06-04T17:42:10.343</nextDate>
        <title>Titolo Video 1</title>
    </PlaylistVideoDTO
    <PlaylistVideoDTO>
        <contentId>qwerty</contentId>
        <duration>PT5S</duration>
        <durationLong>5</durationLong>
        <filename>filename2.mp4</filename>
        <nextDate>2013-06-04T17:55:31.343</nextDate>
        <title>Titolo Video 2</title>
    </PlaylistVideoDTO
    <PlaylistVideoDTO>
        <contentId>1234567</contentId>
        <duration>PT5M24S</duration>
        <durationLong>324</durationLong>
        <filename>filename3.mp4</filename>
        <nextDate>2013-06-04T17:55:37.343</nextDate>
        <title>Titolo Video 3</title>
    </PlaylistVideoDTO
<ArrayOfPlaylistVideoDTO>
                
[
    {
        "contentId": "abcdefg",
        "duration": PT13M20S,
        "durationLong": 800,     
        "filename": filename.mp4,
        "nextDate": "2013-06-04T17:42:10.343",
        "title":"Titolo Video 1",
    },
    {
        "contentId": "abcdefg",
        "duration": PT5S,
        "durationLong": 5,
        "filename": filename2.mp4,
        "nextDate": "2013-06-04T17:55:31.343",
        "title":"Titolo Video 2",
    },
    {
        "contentId": "abcdefg",
        "duration": PT5M24S,
        "durationLong": 324,
        "filename": filename3.mp4,
        "nextDate": "2013-06-04T17:55:37.343",
        "title":"Titolo Video 3",
    }
]
                        

OnAir Video of a Playlist Loop

OnAir Video of a Playlist Loop

The method GetPlaylistLoopVideoOnAir get the currently playing video of a Playlist Loop.

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <GetPlaylistLoopVideoOnAir>
        <token>MY_API_KEY</token>
        <playlistLoopContentId>Gb2xm12f</playlistLoopContentId>
    </GetPlaylistLoopVideoOnAir
                
{
    "token": "MY_API_KEY"
    "playlistLoopContentId": "Gb2xm12f"
}
                

Parameters

token Specify your MainStreaming API KEY
playlistLoopContentId Specify the contentID of the playlist you want to get the On Air video.

Response:

<VodContentDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <categoryDescription i:nil="true">
        <contentId>abcdefg</contentId>
        <duration>PT27M27S</duration>
        <filename>filename.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <title>Titolo Video 1<title>
        <uploadDate>0001-01-01T00:00:00<uploadDate>
<VodContentDTO>
                
{
    "categoryDescription":"Category 1",
    "contentId": "abcdefg",
    "duration": "PT27M27S",
    "filename": "filename.mp4",
    "idCategory": 1,
    "ShortDescription":"short description",
    "longDescription":null,
    "referenceID":null,
    "relatedLinkText":null,
    "relatedLinkURL":null,
    "tags": "tag1;tag2;tag3",
    "title": "Titolo Video 1",
    "uploadDate": "0001-01-01T00:00:00",
}
                        
keyboard_arrow_up