Your Digital Media Has Never Looked So Good

 
tim_beynart
Topic Author
Posts: 227
Joined: Wed Jul 15, 2015 8:30 am

trickPlayBar ad breaks example?

Tue Jun 20, 2017 6:55 am

I can't find any documentation on how to display ad break markers on the built-in trickPlayBar instance of a Video node.
The functionality is mentioned in passing in the description of manifestData (https://sdkdocs.roku.com/display/sdkdoc/Video#Video-Fields)
A new field, "manifestData", has been added to the Video node to detect the periods in a DASH manifest before they are played back. One major use case for this is to display ad markers in the trickplay progress bar.


Is there an example of this somewhere? I want to insert a visual indicator of ad breaks in the progress bar.
 
tim_beynart
Topic Author
Posts: 227
Joined: Wed Jul 15, 2015 8:30 am

Re: trickPlayBar ad breaks example?

Thu Jun 22, 2017 7:58 am

Nobody has implemented this? Seems like a pretty common UI element. 
 
destruk
Posts: 2719
Joined: Sat Dec 18, 2010 4:58 pm

Re: trickPlayBar ad breaks example?

Thu Jun 22, 2017 10:47 am

It doesn't exist on Roku, and designing a full custom UI for video playback in Scenegraph is deemed to be more work than it is worth - if they didn't change the firmware so often then it'd be more feasible, but who knows - in a year they might have SDK 3.0 and force out scenegraph apps just like they are doing with the customization components from SDK1.  Fewer devs will jump in with both feet to do non-standard stuff after getting burned this way.
 
drinkrain
Posts: 12
Joined: Tue May 16, 2017 9:09 am

Re: trickPlayBar ad breaks example?

Thu Jun 22, 2017 2:24 pm

destruk wrote:
custom UI for video playback in Scenegraph is deemed to be more work than it is worth

Messing around with this very thing today.  Do you know of any good examples that I can learn from?
 
tim_beynart
Topic Author
Posts: 227
Joined: Wed Jul 15, 2015 8:30 am

Re: trickPlayBar ad breaks example?

Mon Jun 26, 2017 9:46 am

Chapter breaks are bread and butter UX for ad enabled video, I don't understand why this would not be supported.  It's not like some weird request out of left field.
I guess I can try to read the properties of the scrubber bar and see if I can hack some rectangles on there.
 
tutash
Posts: 13
Joined: Tue Sep 20, 2016 4:33 pm

Re: trickPlayBar ad breaks example?

Tue Feb 05, 2019 9:35 am

trickPlaybarVisiblityHint field and hashMarkPositions array allow this. You set an array in the trickplaybar (hashmarkpositions) when it first shows up (first instanced). It uses floats to determine positions along the trickplaybar. 

Though this feature probably won't go away soon, it's undocumented, and Roku does not officially support it. 
 
destruk
Posts: 2719
Joined: Sat Dec 18, 2010 4:58 pm

Re: trickPlayBar ad breaks example?

Tue Feb 05, 2019 11:28 am

Excellent.  Scenegraph has a few more undocumented features available.

Who is online

Users browsing this forum: No registered users and 9 guests