Your Digital Media Has Never Looked So Good

Topic Author
Posts: 31
Joined: Tue Jul 20, 2010 3:17 pm

Live streams support

Fri Oct 07, 2016 3:08 pm


Considering the JSON feed type, does the video object (content -> videos -> ) support live streams as long as videoType is set to a protocol that supports it (HLS/SMOOTH/DASH)? Are there any additional/undocumented properties required (i.e. type->live?) or can this object reference a valid live feed (i.e. m3u8 URL for a live event) at the url field?

Are you planning to also include support for additional content types that would reflect an actual live stream? Currently they seem limited to movie, series, shortFormVideo and tvSpecial only, with no item to reflect a realtime/live stream on a channel app.

User avatar
Posts: 17
Joined: Fri Oct 30, 2015 6:16 pm

Re: Live streams support

Fri Oct 07, 2016 3:53 pm

Hi Fortscan,

Thanks for the feedback - we'll add it to our feature request list.
So good to remember that Live streams passed through Feed URLs will work - note that for V1 the Channel UI is not currently optimized around a live experience.

Any type of media that Roku's video player can handle will work in the feed - see the full list here:
Posts: 1
Joined: Fri Oct 28, 2016 2:18 pm

Re: Live streams support

Fri Oct 28, 2016 2:21 pm

I am trying to create a feed with LIVE streams (hls).
I understand you said that the experience is not optimised yet for live streams, but hls link should work.
So I am building my json object but I see that you have some required items for "movies" like movie length. As the streams are live there is no length. How do we handle this?
Posts: 8
Joined: Mon Oct 10, 2016 6:40 am

Re: Live streams support

Wed Nov 02, 2016 5:53 am


I am also trying to test a live stream (using Smooth and HLS). I found that the stream plays but it plays from the beginning of the DVR period rather than the live point. Is there any special config required to set the player to play from the live point?

Posts: 14
Joined: Wed Nov 02, 2016 12:45 pm

Re: Live streams support

Thu Nov 03, 2016 10:50 am

Here's a little sample JSON file that i'm working on.   It's for a live tv hls m3u8 stream.  Work great on 7.5 on my Roku Stick 3600.  If it can help you guys.

        "title":"Capital TV",
        "shortDescription":"UK's Number 1 Music TV Station.",

Posts: 5
Joined: Mon Nov 21, 2016 5:19 pm

Re: Live streams support

Mon Nov 21, 2016 5:26 pm

thanks for example - we too have a very simple channel, a single 24/7 live stream we'd like to switch over to direct publisher. we're completely new to the JSON file, is it as simple as taking your example, creating a txt file and hosting it on our aws S3 bucket? that's the url we would use? thanks much, sorry for basic question, any help greatly appreciated.
Posts: 4
Joined: Tue Jan 31, 2017 2:46 am

Re: Live streams support

Tue Jan 31, 2017 3:07 am

Hello Sorry, I have to create through DIRECT PUBLISHER, A channel in live streaming. A CHANNEL IN LIVE 24/24 h.
I do not understand the JSON file.
I take the above code will add on my own page on the site with my parameters and connect to roku ???

I have provided these formats:
rtmp: //


What should I do to create a direct channel for roku ??
I now use
you have other visual sites, where you do not need to know html codes. ??

Thanks Very much!!
User avatar
Posts: 83
Joined: Wed May 18, 2016 2:59 am

Re: Live streams support

Fri Feb 03, 2017 5:58 pm

If I'm understanding you correctly, your channel will only have one stream/one piece of content. If that's the case, then you can pretty easily take a plug-and-play approach with our sample feed.

1. Copy and paste this feed into a text editor like Sublime.
2. Determine which content type makes sense for you. It sounds like tvSpecial might be the way to go.
3. Replace the video URL, thumbnail URL, and all other metadata with your own content's information.
4. Remove the additional sample objects
Posts: 1
Joined: Sat Aug 26, 2017 6:38 pm

Re: Live streams support

Sat Aug 26, 2017 7:24 pm

I was able to get a live stream from a series of Nest Cams working on a Roku channel.

Here are the steps I took: 
1) Downloaded the new version of the videoplayer-channel sample channel from the developer site.
2)  Customized the sources/VideoScene.brs file by changing the url= field on line 22 to point to a categories.xml file on a webserver of mine. 
3)  Then I altered the cover images a bit.  Then, zip up the modified code, and side-load into your roku.
4)  Set NestCam to be public, and browse to the public view of the camera (given in the settings page).
5)  Find the url of the public stream
  • right click on the camera video, and choose "Inspect Element" (I'm using Firefox...not sure of the exact nomenclature on other browsers)
  • The Document Inspector will take you to the part of the page that looks something like this:

    <video class="nexustalk-player" preload="auto" autoplay="" data-poster="model.posterImage" src="blob:<long_hex_code_here>" width="100%" height="100%"></video>

  • Right click on the link that starts with "blob:" and select COPY->Inner HTML.  The result will look like this.  I pasted it to a text doc for easy use.

    <source src="<LONG_HEX_CODE_HERE>/playlist.m3u8" type="application/x-mpegURL">    <source src="rtmps://<LONG_HEX_CODE_HERE" type="rtmp/mp4">

    The server may be slightly different for each cam.  So far, I've seen 'alfa' and 'delta'.
  • Copy the full url that ends in "/playlist.m3u8"
  • In your XML file on the webserver for whichever category you want to show this video in, use this URL as the stream source.
  • MAKE SURE TO CHANGE THE <streamFormat> tag to "hls".   THIS TOOK ME A LONG TIME TO FIGURE OUT, and was the key.   My XML item for this looks like this:
    <item sdImg="http://www.<MYSERVER>.com/rokudev/examples/videoplayer/images/nest_sd.png" hdImg="http://www.<MYSERVER>.com/rokudev/examples/videoplayer/images/nest_hd.png">        
    <title> Cam #1</title>        
     <synopsis>CAMERA #1</synopsis>        

I think that's pretty much it.  I developed the initial channel under the old SDK, so I'm still trying to get up to speed on the newer stuff, so the XML file may not be up in the current format, but it is working. 
Posts: 213
Joined: Sat Jul 27, 2013 12:32 pm

Re: Live streams support

Fri Nov 10, 2017 1:34 pm

I know it gets brought up now & then, but has anyone ever been ableto get a livestream going at all on a DP channel? 

I just tried playing with various settings on YT Live & with my json feed. Wasn't able to see it work, the thumbnail for the vid was there, but when I clicked on it it immediately took me back to my channels home screen. I tried a demo of Vimeo Live too, streamed live there but not to my Roku, did the same thing. I refreshed my Roku thru System > Settings but never got it to work. Vimeo only gives a 10 minute demo so after over an hour total with YT I had to stop for a while.

Seems like it should work, I know YT's general urls don't work with Roku (redirects) and Vimeo has a hardcoded url which at the time during my 10 minutes I didn't navigate into the Settings area but in hindsight should have looked for it.

Anyone else have luck or ever give it a shot?
Posts: 510
Joined: Tue Aug 02, 2011 2:09 pm

Re: Live streams support

Fri Jan 05, 2018 6:43 pm

How to handle the "duration" field in the json for an HLS stream streaming 24/7?
User avatar
Posts: 104
Joined: Mon Apr 24, 2017 4:03 pm

Re: Live streams support

Fri Jan 05, 2018 10:14 pm

newchannel wrote:
How to handle the "duration" field in the json for an HLS stream streaming 24/7?

Any thing will work.  I usually just use 9999, but the player seems to get the duration from the video itself, not the number provided.
Use Wordpress to power your Roku Direct Publisher (& other platforms) ->
Posts: 510
Joined: Tue Aug 02, 2011 2:09 pm

Re: Live streams support

Sat Jan 06, 2018 7:39 am

Thank you. I have my stream playing. Wasn't sure if it would cause it to stop since I had not looked into the "duration" attribute. I'll do your suggested 9999.

Appreciate the help.

Who is online

Users browsing this forum: No registered users and 1 guest