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

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 1
TheEndless
Channel Surfer

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