Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
zuber
Level 7

Simple Video Player Question

In Simple Video Player it says in file appMain.brs
    'Swap the commented values below to play different video clips...


How can I have it where I can have more than 1 videos ?

I am interested in M3u8 files/streams.

Thanks
0 Kudos
7 Replies
adrianc1982
Level 7

Re: Simple Video Player Question

ive never used m3u8 files so i dont know how to use them, but you can set the metadata for your videoscreen or videoplayer to m3u8 and play the file.

Now if you want several streams of the same video with different qualities that is done via the metadata of the video thats being passed to the videoscreen or videoplayer.
0 Kudos
zuber
Level 7

Re: Simple Video Player Question

I am not able to play
I have it set as HLS

Please help

		<streamFormat>hls</streamFormat>

http://bglive-a.bitgravity.com/ndtv/indlo/live/native
0 Kudos
belltown
Level 7

Re: Simple Video Player Question

That video appears to be in a Flash Video container format, which is not supported by Roku.
https://github.com/belltown/
0 Kudos
lmarder
Level 7

Re: Simple Video Player Question

Hi Zuber,

You can set the episode.StreamFormat = "hls" and it will play the HLS video. Similarly, you can set the episode.StreamFormat = "mp4" and you can play an mp4 video.

Here is an example of how we do it:

1. Determine whether the video is HLS or not
https://github.com/zype/zype-roku/blob/ ... rs.brs#L56

2. Sets the stream format
https://github.com/zype/zype-roku/blob/ ... il.brs#L27

Let me know if you have any questions about it!

Landon
0 Kudos
zuber
Level 7

Re: Simple Video Player Question

Hi,
How can I implement this in the roku videochannel app? is this different than the app that comes with roku SDK?

Thanks
0 Kudos
Highlighted
darren1
Level 7

Re: Simple Video Player Question

I would like to list three different videos all different streams. Is this possible and how?
0 Kudos
mjhin
Level 7

Re: Simple Video Player Question

Where can I find this example app?
Can you please post a link to this "Simple Video Player" app?
I can't find it anywhere. Only people talking about it.
0 Kudos