Hi All,
I am starting (just starting tonight) developping on Roku and first thing I remarked, there is very few articles/how to about the basics of Roku developement.
I am intserested in writing an application to stream French TV (yes I am french and miss my tv shows some days
🙂 ). I would like to take that opportunity to write an "how to" on live streaming after my dev.
I might need you help to start understanding how all of that works. First step I am trying to redo the Nasa TV (nicely done by Chris) as an excercise and I thought it would have been pretty straight forward. I was wrong.
So here where I am (I started with the simplevideoplayer project):
Function displayVideo()
print "Displaying video: "
p = CreateObject("roMessagePort")
video = CreateObject("roVideoScreen")
video.setMessagePort(p)
'bitrates = [0] ' 0 = no dots, adaptive bitrate
bitrates = [150]
'Swap the commented values below to play different video clips...
urls = ["http://www.nasa.gov/55644main_NASATV_Windows.asx"]
qualities = ["HD"]
StreamFormat = "wmv"
title = "Nasa TV"
videoclip = CreateObject("roAssociativeArray")
videoclip.StreamBitrates = bitrates
videoclip.StreamUrls = urls
videoclip.minBandwidth = 20
videoclip.StreamQualities = qualities
videoclip.StreamFormat = streamformat
videoclip.Title = title
'videoclip.Live = true
video.SetContent(videoclip)
video.show()
lastSavedPos = 0
statusInterval = 10 'position must change by more than this number of seconds before saving
but I got this error message:
------ Running ------
showSpringboardScreen
Button pressed: 1 0
Displaying video:
play failed: An unexpected problem (but not server timeout or HTTP error) has been detected.
Closing video screen
Screen closed
Is anyone can help me to understand what is wrong ?
I've tried HLS and SD of course as well as bitrate = 0.
I know the format of the streaming is wmv in 150kb (found the info on internet).
Thanks for your help