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: 
AbhiK
Streaming Star

Using BIF files for custom trick play logic

I have used Video node for video playback in my application and set the enableUI field to false. I've created a custom seek bar, custom trick play logic, and other views above the video player, as, title, time spent, etc.
I am having BIF URLs for all the VOD contents. But I can't find how to decode a ".bif" file or how to extract images from the ".bif" file.

According to the new certification criteria, we need to display thumbnails while performing trick play on video player. So, can we use BIF files for our custom trick play logic? Is there any such way?

Can anyone suggest anything?

0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: Using BIF files for custom trick play logic

I think for custom trick play logic you'll want to use individual jpegs, not a BIF file.  The examples given here might help:

https://github.com/rokudev/trickplay-samples

https://github.com/rokudev/trickplay-samples/blob/master/simplevideo-with-jpeg

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
JesUltra
Streaming Star

Re: Using BIF files for custom trick play logic

At the bottom of the release notes for RokuOS 9, I see the below paragraph:

Programmatic access to BIFs through BrightScript — Two new fields, getNearestFrame and nearestFrame, have been added to the BifDisplay component so that developers can now access BIFs programmatically in their channels. Previously a BrightScript channel had to use the built-in trickplay UI to access these BIFs.

So to me it seems that you can access the invisible bifDisplay member of your Video node, and get URL strings of the format "memory://..." which can be used with your own Poster node, to show the thumbnail corresponding to any timestamp of the video.

 

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.