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: 
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.
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
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.
0 Kudos