# How to display .m3u8

**URL:** <https://forum.developer.roku.com/t/how-to-display-m3u8/2275>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [May 21, 2012, 6:48pm UTC](https://forum.developer.roku.com/t/how-to-display-m3u8/2275 "2012-05-21T18:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greengiant83](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@greengiant83](https://forum.developer.roku.com/u/greengiant83)\
**Post date:** [May 21, 2012, 6:48pm UTC](https://forum.developer.roku.com/t/how-to-display-m3u8/2275/1 "2012-05-21T18:48:16Z")

</div>

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](http://rokudev.roku.com/rokudev/examples/videoplayer/images/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](http://rokudev.roku.com/rokudev/examples/videoplayer/images/ElizabethGilb) ert.jpg streamformat: .m3u8 length: 1172 contentquality: SD streamurls: (list of 1)… List(0)= [http://c.brightcove.com/services/mobile … ter.m3u8?v](http://c.brightcove.com/services/mobile/streaming/index/master.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](http://rokudev.roku.com/rokudev/examples/videoplayer/images/ElizabethGilb) ert.jpg streambitrates: (list of 1)… List(0)= 1500 hdposterurl: [http://rokudev.roku.com/rokudev/example … es/Elizabe](http://rokudev.roku.com/rokudev/examples/videoplayer/images/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

---

<div class="post-metadata">

**Author:** ![renojim](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@renojim](https://forum.developer.roku.com/u/renojim)\
**Post date:** [May 21, 2012, 7:08pm UTC](https://forum.developer.roku.com/t/how-to-display-m3u8/2275/2 "2012-05-21T19:08:34Z")

</div>

StreamFormat should be “hls”. I think you’ll also need:

```auto
video.SetCertificatesFile("common:/certs/ca-bundle.crt")
video.InitClientCertificates()

```

since it looks like there’s an “https” connection in there someplace.

-JT

---

<div class="post-metadata">

**Author:** ![greengiant83](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@greengiant83](https://forum.developer.roku.com/u/greengiant83)\
**Post date:** [May 21, 2012, 7:28pm UTC](https://forum.developer.roku.com/t/how-to-display-m3u8/2275/3 "2012-05-21T19:28:43Z")

</div>

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
