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

isstreamstarted and isunderrun

Hi,

I have a question about the field isunderrun which is returned as part of the info within the isstreamstarted event.

I am assuming that the value of isunderrun will be true if there is any freezing of the video due to insufficient bandwidth during streaming. However, this doesn't seem to be the case.

So I am wondering as to what this field represents and under what conditions it is going to be true.

Thanks.
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: isstreamstarted and isunderrun

The event will be fired when there is a rebuffer. A rebuffer is when the video stops and you see the "loading" screen.

--Mark
0 Kudos
srinivasa
Visitor

Re: isstreamstarted and isunderrun

Hi Mark,

Thanks for the feedback and quick reply.

We would like to catch such rebuffering/freezing events. However, we are not seeing the event fire in such scenarios. We are using the roVideoScreen component in the video player example.

We have added the following code to the appVideoScreen.brs file within the while loop

elseif msg.isStreamStarted()
msgInfo = msg.GetInfo()
if (msgInfo.IsUnderrun = true)
print "Playback of " + episode.Title + "had an interruption"
end if

Any suggestions on what might be the issue ?

Thanks
0 Kudos