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: 
krazy
Visitor

roku playback failing some times

Hi,

We have HLS server using Wowza server.
We have made a test application based on videoplayer sample.
Now we have some live channels that we have defined in the xml such as below


<item sdImg="http://www.xxxxxxx.com/roku/artwork/xxxxx.jpg" hdImg="http://www.xxxxxxx.com/roku/artwork/xxxxxxx.jpg">
<title>xxxxx</title>
<contentId>10052</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://x.x.x.x:1935/base1/xxxxxx/playlist.m3u8</streamUrl>
</media>
<synopsis>xxxxxxxxxxx</synopsis>
<genres>Entertainment</genres>
<runtime>8640</runtime>
</item>

problem description.

when we click play, it tries to play and then quits, comes back to old screen with play button,
now we try again to play , it works.
say about one in 10 it fails, no errors on wowza side , roku side a default error message
I have checked the server and see no issues on networking.

Please let me know how to resolve this.
0 Kudos
4 REPLIES 4
RokuChris
Roku Employee
Roku Employee

Re: roku playback failing some times

It may be the case that calling the Show() method on your roVideoScreen before calling SetContent() can cause this behavior with non-mp4 content. I can't say for sure that's what's going on, but I would be very interested to find out if it is. Try commenting out the first screen.Show() in appVideoScreen.brs (line 27) and see if it works any better.
0 Kudos
krazy
Visitor

Re: roku playback failing some times

this is what i have

screen.Show()
episode.StreamFormat = "hls"
screen.SetContent(episode)
screen.Show()
0 Kudos
stratcat96
Visitor

Re: roku playback failing some times

"krazy" wrote:
this is what i have

screen.Show()
episode.StreamFormat = "hls"
screen.SetContent(episode)
screen.Show()



is it possible you need to set a minimum bandwidth since it is coming from a wowza server and possibly the roku is ignoring it?
0 Kudos
krazy
Visitor

Re: roku playback failing some times

i have checked the m3u8 url and when the server does not know the bandwidth, it is sending out 250000 as bandwidth, when the stream starts, it is sending actual bandwidth 1mbit , which is actual

am gonna try today both of these to see if there is any difference.
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.