Developers

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
Tags (1)
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
Tags (1)
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
Tags (1)
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
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!