So I was able to get this to work
function createRow(list as object, num as Integer)
print "Parser.brs - [createRow]"
Parent = createObject("RoSGNode", "ContentNode")
row = createObject("RoSGNode", "ContentNode")
row.Title = list[num].Title
fullContentList = list[num].ContentList
for each itemAA in fullContentList
Playlist = createObject("RoSGNode", "ContentNode")
Playlist.title = itemAA.title
Playlist.description = itemAA.description
Playlist.hdposterurl = itemAA.hdposterurl
Playlist.sdposterurl = itemAA.sdposterurl
Playlist.hdBackgroundImageUrl = itemAA.hdBackgroundImageUrl
for each itemAA2 in fullContentList
item2 = createObject("RoSGNode","ContentNode")
AddAndSetFields(item2, itemAA2)
Playlist.appendChild(item2)
end for
row.appendChild(Playlist)
end for
Parent.appendChild(row)
return Parent
end function
The only problem now is each row only has one icon in it. Ideally, if there are 5 videos in a row, I'd like to show each of them... and when you click "play" is plays the list using the one you clicked as the first in the playlist.
Also, I'm not seeing any events being fired between each playlist video. Am I missing something?