allegro5 video streaming plugin: how to loop without stutter?
I'm trying out the allegro5 video streaming addon on Ubuntu.
My problem is that there doesn't seem to be a way to loop without stutter.
I've tried both seeking to the beginning and close-opening, but both are very slow.
Other than queuing up a 2nd video to kick off right when
the first finishes, i don't see another work-around.
Would adding loop-support to the internal buffering be a useful feature?
or am I doing something wrong?
1 else if (
3 // reached end of video
4 // seek to beginning.
5 // TODO: fix stutters !!!
6// al_seek_video(video_bg, 0);
7// al_start_video(video_bg, 0);
8// al_set_video_playing(video_bg, true);
9// video_bg_frame = al_get_video_frame(video_bg);
11 // TODO: reloading is even worse
17 if (
Thread #618398. Printed from Allegro.cc
Is it necessary to un-register the event handler and re-load the video etc? Couldn't you just use:
else if (ev.type == ALLEGRO_EVENT_VIDEO_FINISHED)
Just guessing really, not used it before.