Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Problem with XML file

for example
     m.readContentTask = createObject("roSGNode", "ContentReader")
      m.readContentTask.observeField("content", "setpanels")
      m.readContentTask.contenturi = ""
      m.readContentTask.control = "RUN"

i dont want to give the url in contenturi variable..i want to give a xml file name instead,tried giving this -   [size=120]m.readContentTask.contenturi = "pkg:/sample.xml" [/size]but its not working out.
is there any way to achieve this?i dont find any example for json response.can anyone tel me how to deal with json response in Roku Scene graph components
0 Kudos
1 REPLY 1\
Level 11

Re: Problem with XML file

For once, that's not RSG problem. You are using somebody else's custom code (example?) where a custom task is spun off to read the content. I bet it blindly creates a roUrlTransfer object and that only works with http URIs, not local ones. It would be easy to fix.
0 Kudos