Hello,
We are trying to play multiple urls for single channel.
Here in my case channel containing three objects in array.each object contains url, We are trying to for loop these objet for automatic play of three urls, but only last url is playing. please provide any suggestion to me for this conflict.
Here We are using SDK method
Here is my code:
array = []
if item.channelassets <> invalid
for each multiUrl in item.channelassets
if multiUrl <> invalid
if Type(multiUrl) = "roAssociativeArray"
array = multiUrl.url
end if
end if
end for
item.url = array
itemData = GetItemData(item)
row1.children.Push(itemData)
end if
It is no longer possible to do this as Direct Publisher has sunset in July 2023 and if not converted to an SDK channel by Jan 12 2024 the channel will be removed from Roku!
Now here is the New Question?
Is it possible to loop a playlist in a Roku SDK Channel?
YES!
An SDK Channel depending on the package setup and used may have the option for the end user to click to play a single video or click to play all videos
One example is I use playlist for my tvSpecials - The playlist are output as a category and the end user has the option to click to play the single video or click to play all!
Depending on your json feed or mrss feed and the type of videos used will determin the list of videos or categories! You can have shortform videos, movies, series and episodes or tvSpecials.
Your feed should use category tags or category Quieries to parse categories for lines of videos or The SDK page may parse one single line of video!
Need help with SDK Channel creation? You are welcome to contact me at https://ondemandtvnetworks.com and use the contact us form
The code posted here shows for a single Row for:
row1.children.Push(itemData)
You did not reveal if you have a player code or other files in the package!
But
try to remove the 1 from the
row1.children.Push(itemData) tp read - row.children.Push(itemData)
or repeat the whole code for:
row2.children.Push(itemData)
and
row3.children.Push(itemData)