Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Blackhawk
Roku Guru

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?
0 Kudos
3 REPLIES 3
EnTerr
Roku Guru

Re: Puting JW player library in a screengraph channel

Did you read https://forums.roku.com/viewtopic.php?t=95238
in particular the link to jwplayer page on roku
0 Kudos
Blackhawk
Roku Guru

Re: Puting JW player library in a screengraph channel

I did, there were no answer
0 Kudos
EnTerr
Roku Guru

Re: Puting JW player library in a screengraph channel

"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. 
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.