destruk
7 years agoStreaming Star
RAF Ad Counter Display?
When there is just a single preroll ad for a video, how do you disable the "Ad 1 of 1" text in the top left corner with Roku Ad Framework in scenegraph?
this is helpful. any idea what the parameters (par1 and par2) for ShowAdCounter represent?
You could do something like this:
'use this before showAds()
Roku_Ads().ShowAdCounter = Handler().ShowAdCounter
function Handler()
return {
ShowAdCounter : function (par1, par2)
' set stop here and investigate what is inside
' add some code here to customize the labels
' par1.instance used for labels
' par2 - has time information about ads playing (index/total etc)
end function
}
end function
Note: add enough checking for 'invalid' value to do this code safe.
After debugging you will get enough information to customize labels, add any text, set color, fonts ...
I hope it will help