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: 
dbulli
Visitor

roVideoPlayer and SetContentList and SSL problems [solved?]

Seeing an issue where roVideoPlayer is not even attempting to call server with an https url? Looking on access log there is no call from video player. When I try calling the server with roUrlTransfer I see attempts in access log on server. Below is the code more or less with relevant pieces


'initial set up
player = CreateObject("roVideoPlayer")
player.SetMessagePort(port)
player.SetLoop(false)
player.SetPositionNotificationPeriod(5)
player.SetDestinationRect(layout.full) 'fullscreen

clip = CreateObject("roAssociativeArray")
clip.StreamBitrates = [0]
clip.Quality = true
clip.ClipDuration = -5
clip.StreamQualities = ["HD"]
clip.Title = "[ Title goes here ]"
clip.StreamFormat = "hls"
clip.SwitchingStrategy = "full-adaptation"

'get video url from server

player.ClearContent()
player.SetCertificatesFile("pkg:/cert/xyz.pem")
player.AddHeader("X-Roku-Reserved-Dev-Id", "")
player.InitClientCertificates()

clip.StreamQualities = [qualities]
clip.StreamUrls = [urls]
player.SetContentList([ m.clip ])
player.Play()



Other places on the forums told me about this command "SetCertificatesDepth" . I tried and it worked, but can't find any documentation on it? What does it do? Why doesn't any documentation have any information?

SetCertificatesDepth(3)
- Daniel
http://dbulli.com
0 Kudos
3 REPLIES 3
RokuMarkn
Visitor

Re: roVideoPlayer and SetContentList and SSL problems

I'm not sure if any of this is related to your problem, but I notice that neither "urls" nor "qualities" is defined. Maybe you didn't quote the code that sets those. Also, "ClipDuration" is not a member of content metadata.

--Mark
0 Kudos
dbulli
Visitor

Re: roVideoPlayer and SetContentList and SSL problems [solve

Other places on the forums told me about this command "SetCertificatesDepth" . I tried and it worked, but can't find any documentation on it?

SetCertificatesDepth(3)
- Daniel
http://dbulli.com
0 Kudos
dbulli
Visitor

Re: roVideoPlayer and SetContentList and SSL problems

"RokuMarkn" wrote:
I'm not sure if any of this is related to your problem, but I notice that neither "urls" nor "qualities" is defined. Maybe you didn't quote the code that sets those. Also, "ClipDuration" is not a member of content metadata.

--Mark



Sorry .. i just took out the code that i thought was relevant. Everything gets set.
- Daniel
http://dbulli.com
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.