cableKutter
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2011
06:59 AM
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.
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 2

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2011
08:23 AM
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
--Mark
cableKutter
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2011
08:32 AM
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.