Forum Discussion

Blackhawk's avatar
Blackhawk
Roku Guru
9 years ago

Puting JW player library in a screengraph channel

I have been studying the ScreenGraph for a couple of days.

This code is the API array which works like a prefix
Function GetApiArray()

url = CreateObject("roUrlTransfer")

url.SetUrl("")

rsp = url.GetToString()

responseXML = ParseXML(rsp)

responseXML = responseXML.GetChildElements()

responseArray = responseXML.GetChildElements()

result = []

for each xmlItem in responseArray

if xmlItem.getName() = "item"

itemAA = xmlItem.GetChildElements()

if itemAA <> invalid

item = {}

for each xmlItem in itemAA

item[xmlItem.getName()] = xmlItem.getText()

if xmlItem.getName() = "media:content"

item.stream = {url : xmlItem.url}

item.url = xmlItem.getAttributes().url

item.streamFormat = "mp4"



mediaContent = xmlItem.GetChildElements()

for each mediaContentItem in mediaContent

if mediaContentItem.getName() = "media:thumbnail"

item.HDPosterUrl = mediaContentItem.getattributes().url

item.hdBackgroundImageUrl = mediaContentItem.getattributes().url

end if

end for

end if

end for

result.push(item)

end if

end if

end for

return result

End Function


Yet I cant get it to work with my cloud library to work because of this

url = CreateObject("roUrlTransfer")

url.SetUrl("https://content.jwplatform.com/libraries/ikXUwRbr.js")

rsp = url.GetToString()



Is there any way I can get my cloud library to work with ScreenGraph?

2 Replies

  • "Blackhawk" wrote:
    I did, there were no answer

    I guess that means you won't be able to use JW-player-anything on Roku then, sorry. Trying to use that javascript file clearly won't work.