iptvmag
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2016
11:56 AM
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
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