Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
iptvmag
Visitor

UNABLE TO CREATE RoSGNode of type ContentNode

what is wrong in this function i am using it inside a task node where at the end i assign the content field of type contenNode
and in the scene i am observing this field to apply changes.

function getChannels()
jsonRequest=CreateObject("roUrlTransfer")
jsonRequest.SetURL(m.top.url)
response=ParseJson(jsonRequest.GetToString())
channels = response.available_channels
listcontent = createObject("RoSGNode","ContentNode") <===================== Error is happening at this line
for each id in channels
if channels[id].stream_type = "live"
stream={}
stream.Title = channels[id].name
stream.url = "some url.m3u8"
listitem = listcontent.createChild("ContentNode") <===================== Error is happening at this line
listitem.Title = stream.Title
listitem.url = stream.url
end if
end for
m.top.listcontent = listcontent
end function
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!