这是存储收藏频道列表的功能。但我无法将数组存储在注册表中,因为只能将字符串作为输入
Function addToFavorites(channeljson as object)as boolean
print "started"
sec = CreateObject("roRegistrySection", "FuturV1")
poster = CreateObject("roAssociativeArray")
'if not sec.Exists("FavoriteChannels")
contentList = CreateObject("roArray", 100, true)
'else
'end if
poster.ShortDescriptionLine1 = channeljson.name
poster.SDPosterURL = channeljson.logo
poster.HDPosterURL = ch`enter code here`anneljson.logo
poster.url= channeljson.ch
contentList.push( poster ) `enter code here`
'sec.Write("FavoriteChannels", ba.ToAsciiString())
print "again"
print contentList.GetEntry(0)
end function