Roku Developer Program

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

Get video length, from HLS and roVideoPlayer

I am trying to indicate to the user the length of the video. The server that I am getting the video for does not give me that info.

Is there a way to get this value from the roVideoPlayer component after the video has started? I can get the current progress using msg.GetIndex() with the "Startup progress" message.

Thanks,
- Daniel
http://dbulli.com
0 Kudos
1 Reply
TheEndless
Level 9

Re: Get video length, from HLS and roVideoPlayer

Unfortunately, there's no way to get the video length from the video player. If it's HLS, though, you could probably parse it from the m3u8 file yourself.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos