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

Suggestions on how to force a video to buffer for testing?

I'm working on my first roVideoPlayer (instead of roVideoScreen), mostly so I can remove the playback bar completely for live video where I don't want the user to manipulate anything.

At the very minimum, I need to implement a loading screen for when the HLS stream first begins to buffer, and a screen when the video stops playing due to buffering issues.

The first part is easy, since I adapted some code from the video player example in the SDK:

...
if msg.isStatusMessage() and msg.GetMessage() = "startup progress"
curProgress% = msg.getIndex() / 10
if progress <> curProgress%
progress = curProgress%
PaintFullscreenCanvas(canvas, progress)
end if
...



In PaintFullScreenCanvas I just overlay some text that shows the percentage as it increases.

When a video begins to buffer after having already started up, what's the behavior? Will roVideoPlayer automatically pause playback on the last frame and then fire another event similar to "startup progress"?

My main issue is that I don't know how I can force my Roku to buffer. I have a pretty decent internet connection. I do have at my disposal a powerful live encoder, so I suppose I could push out a very high bit rate stream until I have trouble playing it - but that seems very hit or miss. Maybe if I could rate-limit the Roku or something?
0 Kudos
2 REPLIES 2
EnTerr
Roku Guru

Re: Suggestions on how to force a video to buffer for testin

Have you tried something simple, like unplugging ethernet cable off Roku box? Or adding a rule in the router that blocks Roku's IP and play with that, turning it on and off?
0 Kudos
NewManLiving
Visitor

Re: Suggestions on how to force a video to buffer for testin

You can also try loading a few movies On whatever you
Have available, laptop phone another tv. After you get enough going
You should see some rebuffering
Does the job for me
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos