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: 
Hexamon
Newbie

Is it possible to get the current filename in an HLS stream?

Scenario:
1. Roku is playing an HLS stream. The stream consists files named:
file_01.ts,
file_02.ts,
file_03.ts
...

2. Roku sends a periodic "progress" messages to the application (say every 10 seconds)

Q:
3. While processing this message, is it possible to query Roku API (or the message object received) to determine the name of the file currently played?

NOTE: I understand it is possible to determine the current position of the play in seconds. The difficulty of determining the filename given the position is that the files are not of equal length. They vary slightly. This makes it PITA (not impossible though) to determine the current filename. I just wanted to make sure there isn't a simpler way through the API I might have missed.
0 Kudos
2 REPLIES 2
TheEndless
Channel Surfer

Re: Is it possible to get the current filename in an HLS str

The "http.connect" log type of the roSystemLog will give you the last file requested. While still not exact, given buffer size and whatnot, using that in conjunction with playback position, might be enough to get you what you need.
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
Hexamon
Newbie

Re: Is it possible to get the current filename in an HLS str

Thanks! I'll look into it.
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.