The message you are trying to access is permanently deleted.
Sub displayHls()
port = CreateObject("roMessagePort")
videoScreen = CreateObject("roVideoScreen")
videoScreen.setMessagePort(port)
videoclip = CreateObject("roAssociativeArray")
videoclip.title = "HLS Test"
videoclip.ContentType = "movie"
videoclip.StreamFormat = "hls"
videoclip.StreamBitrates = [500]
videoclip.StreamQualities = ["0"]
m3u="#EXTM3U"+chr(10)+"#EXT-X-TARGETDURATION:60"+chr(10)+"#EXTINF:60,Test Title"+chr(10)+"http://192.168.1.102/test.ts"+chr(10)+"#EXT-X-ENDLIST"+chr(10)
WriteAsciiFile("tmp:/test.m3u8",m3u)
videoclip.StreamUrls = ["tmp:/test.m3u8"]
videoScreen.SetContent(videoclip)
videoScreen.show()
while true
msg = wait(0, port)
if type(msg) = "roVideoScreenEvent"
if msg.isScreenClosed() then 'ScreenClosed event'
print "Closing video screen"
exit while
else if msg.isPlaybackPosition() then
print "isPlaybackPosition"
else if msg.isRequestFailed()
print "play failed: "; msg.GetMessage()
else if msg.isFullResult()
print "isFullResult"
'exit while
else if msg.isPartialResult()
print "isPartialResult"
'exit while
else
print "Unknown event: "; msg.GetType(); " msg: "; msg.GetMessage()
end if
end if
end while
End Sub
"renojim" wrote:
The result is always the "play failed: An unexpected problem (but not server timeout or HTTP error) has been detected." message.
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=300000, CODECS="avc1.66.30, mp4a.40.5"
http://iphone.domain.com/streams/live/playlist.m3u8?sessionid=1358836792
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000, CODECS="mp4a.40.5"
http://iphone.domain.com/streams/live_audio/playlist.m3u8?sessionid=1519427599
videoclip.StreamUrls = ["http://192.168.0.49:1935/rtplive/vlc.sdp/playlist.m3u8"]
videoclip.StreamBitrates = [500]
videoclip.StreamQualities = ["0"] 'can be one of these HD, SD, 0
videoclip.StreamFormat = "hls" 'can be one of these mp4, wmv, hls
videoclip.Live = True
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1500000
http://server/secondlevel.m3u8
"RokuMarkn" wrote:
Sorry to both of you for a piece of misinformation -- it's StreamBitrates that should be set to 0 (that is, to an array containing one zero). StreamQualities should be "SD" or "HD" as usual.
renojim -- until you upgrade to build 388, you might try building a two-level playlist and see if that works. You'd have a top level playlist like this:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1500000
http://server/secondlevel.m3u8
where the secondlevel.m3u8 line contains the URL of the playlist you're currently using.
--Mark