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

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
0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: How to display .m3u8

StreamFormat should be "hls". I think you'll also need:
video.SetCertificatesFile("common:/certs/ca-bundle.crt")
video.InitClientCertificates()
since it looks like there's an "https" connection in there someplace.

-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
greengiant83
Visitor

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
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.