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: 
dynamitemedia
Binge Watcher

get video extension snipplet

does anyone have a snipplet for getting the extension of a video file?

trying to check if its mp4 or m3u8 (hls)

Normally do this server side but wanted to add it into the brightscript
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
2 REPLIES 2
tensen
Visitor

Re: get video extension snipplet

The filebrowser sample in the SDK has a GetContent sub routine may have what you are looking for.
0 Kudos
dynamitemedia
Binge Watcher

Re: get video extension snipplet

Thanks I will check that out tomorrow.

Never used or looked at that examples as i do not have a USB box, so thanks a lot!
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos