Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
khat33b
Visitor

HLS streaming sometimes not working

I am running a video using HLS protocol in roVideoScreen. The problem is that sometimes the HLS streaming does not work. The URL is HTTP. What I am unable to understand is why this only happens sometimes. I get the following error:

showVideoScreen | msg = ConnectionContext failure | index =  0
status message: ConnectionContext failure
showVideoScreen | msg = Unspecified or invalid track path/url. | index = 0
status message: Unspecified or invalid track path/url.
showVideoScreen | msg = | index = -5
isRequestFailed error text: ; error ID: -5; info: <Component: roAssociativeArray> =
{
MediaFormat: <Component: roAssociativeArray>
}


How do I solve this?
0 Kudos
2 REPLIES 2
JohnBasedow
Visitor

Re: HLS streaming sometimes not working

status message: ConnectionContext failure


I believe this message denotes when an HTTP error code was returned.
0 Kudos
jedashford
Channel Surfer

Re: HLS streaming sometimes not working

I found these lines help me debug all my hls streams:

Added to video screen object:

    syslog = CreateObject("roSystemLog")
syslog.SetMessagePort(screen.GetMessagePort())
syslog.EnableType("http.error")
syslog.EnableType("http.connect")

while true
msg = wait(0, screen.GetMessagePort())
'DEBUG
if type(msg) = "roSystemLogEvent"
print type(msg)
print msg.GetInfo()
print msg.GetData()
print msg.GetMessage()
end if
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.