Roku Developer Program

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

Problem with XML file

for example
     m.readContentTask = createObject("roSGNode", "ContentReader")
      m.readContentTask.observeField("content", "setpanels")
      m.readContentTask.contenturi = "http://www.sdktestinglab.com/Tutorial/content/panelsetcontent.xml"
      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
EnTerr
Level 9

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