'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()
SetCertificatesDepth(3)
SetCertificatesDepth(3)
"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
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!