Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
mco_dolo
Level 7

How to center ad buffering message and progress bar?

Does anyone know how to center the ad message "This program will begin after these messages" and also the progress bar?
The progress bar is cut off in the image below:


Thanks.

EDIT: Seems like the video needs to be in fullscreen before the ad plays or the ui will be misaligned.

SOLUTION: Instead of using video.getParent() as the container for the ads. I created a seperate container in the screen to hold the ads.
<Group id="adsContainer"/>

RAF.showAds(m.top.adPods, invalid, m.top.adsContainer)
0 Kudos
2 Replies
Roku Employee
Roku Employee

Re: How to center ad buffering message and progress bar?

You are calling showAds() RSG-native style, right? - by passing a view node? Well that view has to be properly sized (typically full screen) since the ad UI gets positioned on that. Looking at the screen seems that param was off-kilter
0 Kudos
Tyler_Smith
Level 7

Re: How to center ad buffering message and progress bar?

Are you hard-coding your player dimensions to a specific resolution?
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos