Forum Discussion
SkipFire
14 years agoVisitor
I use the same object for both the springboard and the audioplayer (figured it was easier than different objects). You are correct I was looking for it on the bottom where the documentation says, but I don't see one under the poster either. Below is the code I use for populating the object that I use on both the audioplayer and the springboard.
item = CreateObject("roAssociativeArray")
item.ContentId = validstr(cItem.contentId.GetText())
item.Title = validstr(cItem.title.GetText())
item.url = validstr(cItem.streamUrl.GetText())
item.artist = validstr(cItem.artist.GetText())
item.album = validstr(cItem.album.GetText())
item.format = validstr(cItem.streamFormat.GetText())
item.medialocation = validstr(cItem.title.GetText())
item.ContentType = "audio"
item.HDPosterUrl = validstr(cItem@hdImg)
item.SDPosterUrl = validstr(cItem@sdImg)
itemCount = itemCount + 1
items.Push(item)
item = CreateObject("roAssociativeArray")
item.ContentId = validstr(cItem.contentId.GetText())
item.Title = validstr(cItem.title.GetText())
item.url = validstr(cItem.streamUrl.GetText())
item.artist = validstr(cItem.artist.GetText())
item.album = validstr(cItem.album.GetText())
item.format = validstr(cItem.streamFormat.GetText())
item.medialocation = validstr(cItem.title.GetText())
item.ContentType = "audio"
item.HDPosterUrl = validstr(cItem@hdImg)
item.SDPosterUrl = validstr(cItem@sdImg)
itemCount = itemCount + 1
items.Push(item)