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: 
FML2010
Visitor

Re: Http Live Streaming + Transcoding Example

I am interested in knowing how you got the tversity to work with your Roku DVP

I am gonna play with it today and try to get this done using the video player example.
0 Kudos
scyber
Visitor

Re: Http Live Streaming + Transcoding Example

Well I think I may have figured out the first issue with using Tversity's HLS for the roku. When just playing a m3u8 url from tversity on the roku using the simplevideplayer example, the progress bar would go about a third of the way across and then stop (this appears to indicate that the m3u8 files has loaded, but no segments). I noticed that the urls in the tversity m3u8 were relative, not absolute:

#EXTM3U
#EXT-X-TARGETDURATION:1
#EXTINF:10,
/getres/profile/ebe80805-5640-4753-b0ad-e3f53817ae2f/video/mp2tavc;res=1280x720;fps=30_1;vb=2000000/range/0-437852/7184/segment.ts
#EXTINF:1,
/getres/profile/ebe80805-5640-4753-b0ad-e3f53817ae2f/video/mp2tavc;res=1280x720;fps=30_1;vb=2000000/range/437852-503652/7184/segment.ts
#EXTINF:2,
/getres/profile/ebe80805-5640-4753-b0ad-e3f53817ae2f/video/mp2tavc;res=1280x720;fps=30_1;vb=2000000/range/503652-632244/7184/segment.ts
#EXTINF:2,
/getres/profile/ebe80805-5640-4753-b0ad-e3f53817ae2f/video/mp2tavc;res=1280x720;fps=30_1;vb=2000000/range/632244-761212/7184/segment.ts


The HLS spec says you can use relative urls, and that is what the examples in simplevideo player use, however the simplevideoplayer sample urls are relative to the directory containing the m3u8 files. The Tversity m3u8 urls are relative to the server root. I think Roku may not handle urls relative to the server root correctly for HLS (just a theory).

Anyway, I copied the full m3u8 file, put in the full IP and port information for Tversity and placed the file elsewhere on the server. This improved the situation, the progress bar will jump to around 1/3 full (again, I assume this indicates the m3u8 file has been loaded), then it will slowly progress till over halfway and then stop. I assume the slow progression represents the loading of the individual segments. I can't figure out why it stops though.
0 Kudos
FML2010
Visitor

Re: Http Live Streaming + Transcoding Example

where are you even finding the .m3u8 file?
0 Kudos
scyber
Visitor

Re: Http Live Streaming + Transcoding Example

"FML2010" wrote:
where are you even finding the .m3u8 file?


Using Tversity's HTTP Rest API:
http://tversity.com/doc/group___h_t_t_p ... a_p_i.html

First you need to add a Roku profile to the profiles.xml file. I just copied the ipad profile changing the first couple of lines as follows:

<profile id="ec5b1100-0000-1100-1101-ec5b314a1101"><!-- Roku HD DVP (N1100/N1101) -->
<friendlyName>Roku HD DVP</friendlyName>
<manufacturerName>Roku</manufacturerName>
<modelName>N1100/N1101</modelName>

<HTTPHeader inUASubstr="Roku/DVP" exclusiveIP="false"/>
<icon>/images/device_icon_generic.png</icon>


Use the MedialibBrowse Interface to browse through your content (you can do this in a browser if you set your user agent to an ipad and/or a Roku). When you get to a video file, you will need to replace "/getres" in the url with "/getindex" (if you use the ipad user agent in your browser you shouldn't need to change the url).
0 Kudos
FML2010
Visitor

Re: Http Live Streaming + Transcoding Example

well i did what you said with and i have to say that is as far as i could do 😞

one issue could be is i don't have the pro version
0 Kudos
scyber
Visitor

Re: Http Live Streaming + Transcoding Example

Yeah, sorry I forgot to mention I have the pro version. Since ipad/iphone streaming is only supported in the pro version, it is likely that HLS wont work in the regular version. My goal would be to get Roku streaming working correctly in the pro version, then downgrade my install and try to get it working in the regular version.
0 Kudos
mpmchugh
Newbie

Re: Http Live Streaming + Transcoding Example

"shshchch" wrote:
orrrrrr tversity


Unfortunately, there's no Mac OS X version of the Tversity server. Air Video is available for both Mac & WIndows.

-mpm
0 Kudos