I was transitioning my Roku Ads to Scene Graph and noticed this warning in the console:
RAF 2.0215; rendering preroll pod of 1 ads
BRIGHTSCRIPT: WARNING: roImageCanvas: This component is deprecated: roku_ads_lib:/Roku_Ads.brs(3237)
BRIGHTSCRIPT: WARNING: roCaptionRenderer: This component is deprecated: roku_ads_lib:/Roku_Ads.brs(2645)
BRIGHTSCRIPT: WARNING: roVideoPlayer: This component is deprecated: roku_ads_lib:/Roku_Ads.brs(2645)
Is this something I need to worry about? I'm doing it pretty much the same way I did before which is the same way I see listed in the "FullRAFSceneGraphSample.zip" online:
adIface = Roku_Ads() 'RAF initialize
print "Roku_Ads library version: " + adIface.getLibVersion()
adIface.setDebugOutput(true) 'for debug pupropse
'RAF content params
adIface.setContentId(m.videoContent.contentId)
adIface.SetContentGenre(m.videoContent.contentGenre)
'Nielsen content params
adIface.enableNielsenDAR(true)
adIface.setContentLength(m.videoContent.conntentLength)
adIface.setNielsenProgramId(m.videoContent.nielsenProgramId)
adIface.setNielsenGenre(m.videoContent.nielsenGenre)
adIface.setNielsenAppId(m.videoContent.nielsenAppId)
'Indicates whether the default Roku backfill ad service URL
'should be used in case the client-configured URL fails (2 retries)
'to return any renderable ads.
adIface.setAdPrefs(true, 2)
' Normally, would set publisher's ad URL here.
' Otherwise uses default Roku ad server (with single preroll placeholder ad)
adIface.setAdUrl(m.videoContent.adUrl)
'Returns available ad pod(s) scheduled for rendering or invalid, if none are available.
adPods = adIface.getAds()
playContent = true
'render pre-roll ads
if adPods <> invalid and adPods.count() > 0 then
playContent = adIface.showAds(adPods)
endif