Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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.

- Daniel
0 Kudos
1 Reply
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: - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos