cableKutter
Visitor

New to Roku Programming

Okay, I hate to trouble you guys with such a simple issue. I have a feeling I am missing something really simple.

I have gotten images upload, made a menu selection screen. Basically I am just testing it right now to see if I know what I am doing. So I am using as a test video one I used a few years ago as a college HTML project in an introductory class. The video will not play. I can use the video links provided with the Roku SDK and they work in my program. So it has something to do with my video I am assuming.

Code:
print "Displaying video: "
p = CreateObject("roMessagePort")
video = CreateObject("roVideoScreen")
video.setMessagePort(p)

bitrates = [0]

urls = ["https://crux.baker.edu/~jrende02/WEB/Web111A/pages/ps/bear.wmv"]
qualities = ["SD"]
StreamFormat = "wmv"
title = "My Daughter"

videoclip = CreateObject("roAssociativeArray")
videoclip.StreamBitrates = bitrates
videoclip.StreamUrls = urls
videoclip.StreamQualities = qualities
videoclip.StreamFormat = streamformat
videoclip.Title = title

video.SetContent(videoclip)
video.show()


I have tried multiple videos and the only ones I can get to work are the ones that were provided with the Roku SDK.
Tags (1)
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: New to Roku Programming

That video is using an https URL, so you must call SetCertificatesFile to make the SSL connection work. You might try using plain http URLs until you get it working, then switch to https.

--Mark
Tags (1)
0 Kudos
cableKutter
Visitor

Re: New to Roku Programming

"RokuMarkn" wrote:
That video is using an https URL, so you must call SetCertificatesFile to make the SSL connection work. You might try using plain http URLs until you get it working, then switch to https.

--Mark


Thank you. I will work with that then. Or at least work with with http.
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!