Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rsaw3rd
Channel Surfer

Please Check My JSON and see why my Direct Play feed Is Not Working

{
  "providerName": "RockinghamUpdate",
  "language": "en-us",
  "lastUpdated": "2020-02-11T18:12:32.125Z",
  "liveFeeds": [
    {
      "id": "2382322212",
      "title": "Rockingham County News & Meetings",
      "shortDescription": "News shorts and Municipal Meetings from Rockingham County, NC",
      "longDescription": "News shorts and Municipal Meetings from Rockingham County, NC",
      "thumbnail": "https://www.rceno.com/RCENO/images/RU-Large.jpg",
      "genres": [
        "news"
      ],
      "tags": [
        "news"
      ],
      "releaseDate": "2020-02-11",
      "content": {
        "dateAdded": "2020-02-11T14:14:54.431Z",
        "captions": [

        ],
        "videos": [
          {
            "url": "https://app.viloud.tv/1/channel/50538c870f5eafa6c8384a1e9217763e.m3u8",
            "quality": "HD",
            "videoType": "MP4",
            "bitrate": 1000
          }
        ]
      }
    }
  ]
}
0 Kudos
6 REPLIES 6
37mediagroup
Roku Guru

Re: Please Check My JSON and see why my Direct Play feed Is Not Working

Seems valid. What happened when you submitted it to Roku?

 

Also, please be aware where you're posting this and try to post in the Direct Publisher section https://community.roku.com/t5/Roku-Direct-Publisher/bd-p/roku-direct-publisher .  This is the straight developer/hand coded section & it's gotta be annoying to them as they constantly have been getting DP posts in here.

0 Kudos
rsaw3rd
Channel Surfer

Re: Please Check My JSON and see why my Direct Play feed Is Not Working

I get a validation Red Exclamation point on the Feed Status, so I trimmed down the JSON to the following (I should mention that this is a Liner Feed, that ideally would start to play once the channel is selected but I am unsure on how to code that in JSON) 

{
	"providerName": "RockinghamUpdate",
	"language": "en-US",
	"lastUpdated": "2016-10-06T18:12:32.125Z",
	"shortFormVideos": [{
		"id": "fd",
		"title": "News Shorts And Municipal Meetings",
		"shortDescription": "News Shorts and Municipal Meetings From the Rockingham County, NC Area",
		"thumbnail": "https://www.rceno.com/RCENO/images/400-90-RU.jpg",
		"genres": [
			"news"
		],
		"tags": [
			"broadcasts",
			"live"
		],
		"releaseDate": "2020-02-11",
		"content": {
			"dateAdded": "2020-02-11T14:14:54.431Z",
			"captions": [

			],
			"videos": [{
				"url": "https://app.viloud.tv/1/channel/50538c870f5eafa6c8384a1e9217763e.m3u8",
				"quality": "HD",
				"videoType": "HLS"
			}]
		}
	}]
}

 

0 Kudos
37mediagroup
Roku Guru

Re: Please Check My JSON and see why my Direct Play feed Is Not Working

Sometimes the red exclamation means it's still processing, and if you click into it, there's a Refresh button you can press. Otherwise might take 3-5 minutes but sometimes longer. (Although, maybe its an orange marker, not red, I forget).  Anyway, generally if it is an error when it says "84 lines ingested, 1 error" or whatever you can click the < before the "1 error" part and it acts as a drop down. When it drops down it typically describes the error in more detail. 

0 Kudos
rsaw3rd
Channel Surfer

Re: Please Check My JSON and see why my Direct Play feed Is Not Working

Thank You - The Exclamation point has turned off - however, I am not receiving a video feed when checking the channel, I am not sure what I am doing wrong - Earlier, I had a feed from a much more complex code (I copied from another's example for a Twitch stream and I replaced my m3u8 link into the code, however there were a lot of broken links that were included as they had Playlists, individual videos, etc. I tried to trim that code down to just the inclusion of my m3u8 link and it returned a valid json code, but Now I have no video .... I am certain it is something pretty simple (It most often is in life) but I am overlooking it .... Here is the current trimmed down json --- any thoughts as to why I am not receiving a video on the Test Roku Channel? When I click Preview on the Manage My Channel option on Developer Roku I see a placeholder for the video stream .....

 

{"providerName":"RockinghamUpdate","language":"en-us","lastUpdated":"2020-02-11T18:12:32.125Z","liveFeeds":[{"id":"201708127","title":"News \u0026 Municipal Meetings","shortDescription":"News from Rockingham County, NC","longDescription":"News and Municipal Meetings From the Rockingham County, NC Area","thumbnail":"http://www.rceno.com/RCENO/images/RU-Large.jpg","genres":["news"],"tags":["news"],"releaseDate":"2020-02-11","content":{"dateAdded":"2020-02-11T14:14:54.431Z","captions":[],"videos":[{"url":"https://app.viloud.tv/1/channel/50538c870f5eafa6c8384a1e9217763e.m3u8","quality":"HD","videoType":"HLS","bitrate":1000}]}}]}
0 Kudos
37mediagroup
Roku Guru

Re: Please Check My JSON and see why my Direct Play feed Is Not Working

The very last option in the Manage My Channel is Publish. You'll need to click that to actually submit it. Otherise its just kinda testing and preliminary.

0 Kudos
Baradanikto
Roku Guru

Re: Please Check My JSON and see why my Direct Play feed Is Not Working

It looks like you may have coded the feed file by hand.  You've got some problems with it.

  1.   Your date fields do not match the Json spec expected format.
  2.   You included a 'releaseDate' for the liveFeed object when it does not require it.
  3.   You have not specified a required 'brandedThumbnail' value.

The above are some of the issues that may cause you problems.  Note, Json linters will not catch logic errors, or, feed file requirements. 

In my experience, Json validation through the Developer Portal is not forgiving.  The most subtle error can cause the channel to not display, or, display incorrectly.

FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.