Balbant Singh
Balbant Singh

Reputation: 187

RAF SDK not working in SceneGraph application (BrightScript)

I am creating my own channel for Roku. I need to get the streams of my videos and ads pod. Code wrote in .xml or task node file -

   adIface = Roku_Ads()
   adIface.setAdUrl(adUrl)
   adPods = adIface.getAds()
   shouldPlayContent = adIface.showAds(adPods) 

This code working fine in main.brs file but in .xml file or task node generate error- " 'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in roku_ads_lib:/Roku_Ads.brs(2762) 2762: ??" . Please give me solution.

Upvotes: 0

Views: 203

Answers (1)

Nas Banov
Nas Banov

Reputation: 29020

You are lacking important info from the error message - specifically the stack trace that was going to show which line of your code that happens (i.e. not only the library line#)

But let me guess - you haven't set anything in adUrl, so invoking adIface.setAdUrl() with a null reference? Just comment out that line to use the default ad URL, add later if needed.

Upvotes: 1

Related Questions