Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
nanuto
Level 7

HLS Problem

the screen is fully loaded with the bar but the video never starts.
the debug window shows that if the segments are obtained, and is constantly updated.
on VLC the url worked.


port = CreateObject("roMessagePort")
video = CreateObject("roVideoScreen")
video.SetMaxVideoDecodeResolution(1280, 720)
video.setMessagePort(port)
bitrates = [0]
urls = [dStream]
qualities = ["SD"]
StreamFormat = "HLS"
title = dTitle

videoclip = CreateObject("roAssociativeArray")
videoclip.StreamBitrates = bitrates
videoclip.StreamUrls = urls
videoclip.StreamQualities = qualities
videoclip.StreamFormat = StreamFormat
videoclip.Title = title
videoclip.SwitchingStrategy="full-adaptation"

video.SetContent(videoclip)
video.show()



on ssh

Unknown event: 20 msg: Stream started.
Unknown event: 37 msg: Segment download started
Unknown event: 31 msg: Download segment info
Unknown event: 31 msg: Download segment info
Unknown event: 37 msg: Segment download started
Unknown event: 31 msg: Download segment info
Unknown event: 31 msg: Download segment info
Unknown event: 37 msg: Segment download started


any ideas_??
0 Kudos