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: 
mco_dolo
Visitor

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)
2 REPLIES 2
NB_
Roku Guru

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

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

Are you hard-coding your player dimensions to a specific resolution?
Tyler Smith
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.