Roku Direct Publisher

The easiest way to create a great TV experience.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

HLS not accept

Hi!
Can not create feed (for LIve tv HLS)
my file .json
{
  "providerName":"Silence TV WORLD",
  "language":"en-US",
  "lastUpdated":"2017-07-01T18:12:32.125Z",
  "shortFormVideos":[
     {
        "id":"Silence77tvqw12",
        "title":"Silence TV WORLD",
        "shortDescription":"This innovative way is getting more and more popular around the world.",
        "thumbnail":"http://93.190.140.42/t/silence800x450.jpg",
        "genres":[
           "nature"
        ],
        "tags":[
           "uk"
        ],
        "releaseDate":"2017-01-03",
        "content":{
           "dateAdded":"2017-01-03T04:14:54.431Z",
          "captions":[

           ],
          "videos":[
              {
                 "url":"http://eurotv.world:8081/roku/live/playlist.m3u8",
                 "quality":"HD",
                 "videoType":"hls"
              }
           ]
        }
     }
  ]
 
}


The answer is

    No valid items were found in the feed1 item has an error: Required content duration missing or invalid. Duration must be greater than 0.
I have no ideas
Tell me

thanks for the answer
0 Kudos
1 Reply
Highlighted
Level 12

Re: HLS not accept

You have a syntax error in your JSON feed file.  If you look at the JSON feed spec, you'll see that the Content object requires a "duration" field.  You have not specified that.  These types of errors typically happen when coding the feed file by hand.

Disclaimer:  I have recently written software to help in creating and managing JSON feed files.  You won't need to know JSON or programming.  The software creates syntacically correct JSON files.  If you're interested, please take a look at my post, New Software to Create and Manage Json Feed files!
FREE Windows desktop software for creating BIF (Trick Play), Direct Publisher (MRSS, JSON), and FireTV feeds @ https://github.com/rrirower. No programming knowledge required.
0 Kudos