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: 

HLS file not loading, but works fine in Safari and iPhone

I am trying to load a live streaming file from Livestream, with the api feed they gave me. I can load the feed in Safari and it works fine, and it also works in an iOS app that was built for my company. I cannot get it to work on my Roku app. My event is also streaming fine on the Livestream channel on Roku, but I can't figure out how they are making it work.

Here is the feed:
http://api.new.livestream.com/accounts/6957/events/1000825/live.m3u8

I get this error when trying to load it in my Roku app:
Unspecified or invalid track path/url

I am loading the file on my Roku 2500x running software 5.5, and I'm not sure if this HLS file is not supported in this older Roku. I haven't tested on a newer Roku yet.

I did notice that when I load the file in Safari, a different stream from akamaihd.net appears in the browser bar. Also, if I try to load the stream in Chrome, it downloads a file called "master.m3u".

Here it what master.m3u outputs:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=678000,RESOLUTION=768x432,CODECS="avc1.77.30, mp4a.40.2"
http://livestream-f.akamaihd.net/i/6957_1000825_08d4cce1_1@73194/index_678_av-p.m3u8?sd=10&dw=100&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=198000,RESOLUTION=480x270,CODECS="avc1.66.30, mp4a.40.2"
http://livestream-f.akamaihd.net/i/6957_1000825_08d4cce1_1@73194/index_198_av-p.m3u8?sd=10&dw=100&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2320000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
http://livestream-f.akamaihd.net/i/6957_1000825_08d4cce1_1@73194/index_2320_av-p.m3u8?sd=10&dw=100&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=48000,CODECS="mp4a.40.2"
http://livestream-f.akamaihd.net/i/6957_1000825_08d4cce1_1@73194/index_198_a-p.m3u8?sd=10&dw=100&rebase=on



Any help would be appreciated.
0 Kudos
6 REPLIES 6
renojim
Community Streaming Expert

Re: HLS file not loading, but works fine in Safari and iPhon

It does some kind of redirect which it seems isn't being handled. You might want to do a HEAD request on http://api.new.livestream.com/accounts/ ... /live.m3u8 using roUrlTransfer and then set the stream URL to the value of the Location header.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos

Re: HLS file not loading, but works fine in Safari and iPhon

In case it helps anyone, I fixed this issue by using the solution found in this topic regarding Akamai videos:

http://forums.roku.com/viewtopic.php?f=34&t=66537&p=425668&hilit=akamai
0 Kudos
ohiovr
Visitor

Re: HLS file not loading, but works fine in Safari and iPhon

Hey decadeofdefeat,

were you able to get a livestream.com stream working on a roku? if so I'd like to see your solution
0 Kudos
ohiovr
Visitor

Re: HLS file not loading, but works fine in Safari and iPhon

0 Kudos
ginedy
Visitor

Re: HLS file not loading, but works fine in Safari and iPhon

I have a similar problem that I can not get it to work..My live stream works perfect everywhere else but not on my ROKU. can any one tell me where to go or what to do please?
If I take away my hls live stream and put in a url to open a MP4 video I have on my server, it works perfect on Roku. All I do is change the url to where the
video is and take the hls url out and it works good. But not my hls. Please any one help me. I am not a master at this. Thanks



using categories xml

<?xml version="1.0" encoding="UTF-8"?>
<feed>
<item sdImg="http://penieltv.tv/penielcanal/images/penieltv/PenielSD.jpg" hdImg="http://penieltv.tv/penielcanal/images/penieltv/PenielHD.jpg">
<title>Conozca más de Peniel TV</title>
<contentType>LiveStream</contentType>
<contentId>1</contentId>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamUrl>http://my server ip:1935/PenielHDTV/PenielHDTV/playlist.m3u8</streamUrl>
</media>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>HD</streamQuality>
<streamUrl>http://my server ip:1935/PenielHDTV/PenielHDTV/playlist.m3u8</streamUrl>
</media>
<synopsis>Conozca más de Peniel TV</synopsis>
<genres>Clip</genres>
</item>
<item sdImg="http://penieltv.tv/penielcanal/images/penieltv/sdtvpeniel.jpg" hdImg="http://penieltv.tv/penielcanal/images/penieltv/hdtvpeniel.jpg">
<title>Señal EN VIVO</title>
<contentType>talk</contentType>
<contentId>1</contentId>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>SD</streamQuality>
<streamUrl>http://my server ip:1935/PenielHDTV/PenielHDTV/playlist.m3u8</streamUrl>
</media>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>HD</streamQuality>
<streamUrl>http://my server ip:1935/PenielHDTV/PenielHDTV/playlist.m3u8</streamUrl>
</media>
<synopsis>Señal EN VIVO</synopsis>
<genres>Clip</genres>
</item>
</feed>
0 Kudos

Re: HLS file not loading, but works fine in Safari and iPhon

"ohiovr" wrote:
I posted a solution to how to load livestream into Roku here:

http://stackoverflow.com/questions/31303240/unspecified-or-invalid-track-path-url-roku-with-livestre...


I found this solution no longer works properly, or the original solution that I posted. For some reason the cookie values are null, and then the screen.AddHeader("Cookie",hdntl) function crashes the app. Something must have changed with a recent update to the software. So I just set the original values to an empty string first, seems to resolve the issue.


hdntl = ""
alid = ""
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.