greengiant83
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2012
11:48 AM
How to display .m3u8
I am new to the Roku and as a developer I am not really all that familiar with the specifics of video formats, but I have been tasked with making a Roku channel for a client. The video's are being hosted on brightcove and the streaming url is a .m3u8. It looks like the new Roku players support this format. How do you the Roku stream this type of file?
I took the SimpleVideoPlayer example and modified the showVideoScreen() function to change the streamurl to my .m3u8. Unfortuantely, it doesn't play. Looking at the log in telnet I see an error message: "Content contains no playable tracks"
What am I doing wrong?
Here is a bit more of the log:
Episode details:
---- AA ----
starrating: 90
hdbifurl:
shortdescriptionline2:
shortdescriptionline1: Elizabeth Gilbert on nurturing creativity
contentid: 10051
sdbifurl:
categories: (list of 1)...
List(0)= Creativity
sdposterurl: http://rokudev.roku.com/rokudev/example ... es/Elizabe
thGilbert.jpg
description: Elizabeth Gilbert muses on the impossible things we expect from art
ists and geniuses -- and shares the radical idea that, instead of the rare perso
n 'being' a genius, all of us 'have' a genius. It's a funny, personal and surpri
singly moving talk.
ishd: false
genre: Creativity
hdimg: http://rokudev.roku.com/rokudev/example ... zabethGilb
ert.jpg
streamformat: .m3u8
length: 1172
contentquality: SD
streamurls: (list of 1)...
List(0)= http://c.brightcove.com/services/mobile ... ter.m3u8?v
ideoId=1623500249001&pubId=1324209225001
runtime: 1172
synopsis: Elizabeth Gilbert muses on the impossible things we expect from artist
s and geniuses -- and shares the radical idea that, instead of the rare person '
being' a genius, all of us 'have' a genius. It's a funny, personal and surprisin
gly moving talk.
streamqualities: (list of 1)...
List(0)= SD
sdimg: http://rokudev.roku.com/rokudev/example ... zabethGilb
ert.jpg
streambitrates: (list of 1)...
List(0)= 1500
hdposterurl: http://rokudev.roku.com/rokudev/example ... es/Elizabe
thGilbert.jpg
playstart: 0
title: Elizabeth Gilbert on nurturing creativity
contenttype: episode
hdbranded: false
actors: (list of 1)...
List(0)= Creativity
------------
showHomeScreen | msg = Stream started. | index = 0
Unexpected event type: 20
showHomeScreen | msg = Content contains no playable tracks. | index = 0
Video status: 0 0
showHomeScreen | msg = | index = -5
Video request failure: -5 1
showHomeScreen | msg = | index = 0
Screen closed
Button pressed: 2 0
I took the SimpleVideoPlayer example and modified the showVideoScreen() function to change the streamurl to my .m3u8. Unfortuantely, it doesn't play. Looking at the log in telnet I see an error message: "Content contains no playable tracks"
What am I doing wrong?
Here is a bit more of the log:
Episode details:
---- AA ----
starrating: 90
hdbifurl:
shortdescriptionline2:
shortdescriptionline1: Elizabeth Gilbert on nurturing creativity
contentid: 10051
sdbifurl:
categories: (list of 1)...
List(0)= Creativity
sdposterurl: http://rokudev.roku.com/rokudev/example ... es/Elizabe
thGilbert.jpg
description: Elizabeth Gilbert muses on the impossible things we expect from art
ists and geniuses -- and shares the radical idea that, instead of the rare perso
n 'being' a genius, all of us 'have' a genius. It's a funny, personal and surpri
singly moving talk.
ishd: false
genre: Creativity
hdimg: http://rokudev.roku.com/rokudev/example ... zabethGilb
ert.jpg
streamformat: .m3u8
length: 1172
contentquality: SD
streamurls: (list of 1)...
List(0)= http://c.brightcove.com/services/mobile ... ter.m3u8?v
ideoId=1623500249001&pubId=1324209225001
runtime: 1172
synopsis: Elizabeth Gilbert muses on the impossible things we expect from artist
s and geniuses -- and shares the radical idea that, instead of the rare person '
being' a genius, all of us 'have' a genius. It's a funny, personal and surprisin
gly moving talk.
streamqualities: (list of 1)...
List(0)= SD
sdimg: http://rokudev.roku.com/rokudev/example ... zabethGilb
ert.jpg
streambitrates: (list of 1)...
List(0)= 1500
hdposterurl: http://rokudev.roku.com/rokudev/example ... es/Elizabe
thGilbert.jpg
playstart: 0
title: Elizabeth Gilbert on nurturing creativity
contenttype: episode
hdbranded: false
actors: (list of 1)...
List(0)= Creativity
------------
showHomeScreen | msg = Stream started. | index = 0
Unexpected event type: 20
showHomeScreen | msg = Content contains no playable tracks. | index = 0
Video status: 0 0
showHomeScreen | msg = | index = -5
Video request failure: -5 1
showHomeScreen | msg = | index = 0
Screen closed
Button pressed: 2 0
2 REPLIES 2
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2012
12:08 PM
Re: How to display .m3u8
StreamFormat should be "hls". I think you'll also need:
-JT
video.SetCertificatesFile("common:/certs/ca-bundle.crt")since it looks like there's an "https" connection in there someplace.
video.InitClientCertificates()
-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.
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.
greengiant83
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2012
12:28 PM
Re: How to display .m3u8
Thanks, Jim. This works great.
A quick note for anyone else that finds this, the object video actually refers to the screen object in the example
A quick note for anyone else that finds this, the object video actually refers to the screen object in the example