I am creating my own channel for Roku. I need to get the streams of my videos and images from a JSON file on a server.
Code in my SceneGraph .xml file:
<![CDATA[sub init()
data = CreateObject("roUrlTransfer")
data.SetUrl(url)
data.AsyncGetToString()
end sub]]>
This code is working fine in a Task
node and the main.brs
file, but in my .xml file it generates this error: "invalid BrightScript Component or interface reference".
Please help me with a solution.