Forum Discussion

cableKutter's avatar
15 years ago

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.

2 Replies

  • 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
  • "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.