amerg
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019
03:19 PM
RAF ad player size
Is there a way to set the RAF ad player's size? The content player is 720x405 but the ad player still plays as if fullscreen.
I am passing in the video's parent as the third argument of showAds()
Thanks in advance.
I am passing in the video's parent as the third argument of showAds()
m.view = video.getParent()
...
m.RAF.showAds(m.adPods, invalid, m.view)
<Rectangle id="videoPlayerContainer" width="720" height="405" translation="[0,70]" clippingRect="[0,0,720,405]">
<Video
id="videoPlayer"
visible="true"
width="720"
height="405"
/>
</Rectangle>
Thanks in advance.
3 REPLIES 3
JalpaWhiz
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2020
05:25 AM
Re: RAF ad player size
Did you get solution for this ? I am facing the same problem
Matt_Moores
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2020
09:58 AM
Re: RAF ad player size
Have you tried
setAdConstraints(maxHeight as Integer, maxWidth as Integer, maxBitrate as Integer, supportedMimeTypes as Object)
https://developer.roku.com/docs/developer-program/advertising/raf-api.md
taschmidt
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023
08:41 AM
Re: RAF ad player size
Still seeing this issue. I confirmed that the boundingRect for the view that I pass to showAds has the dimensions I want but RAF seems to ignore it. Calling setAdConstraints made no difference since I believe this just tells RAF which ad stream to select.