You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a long time, the idiom in vlcj to play multiple media one after the other was to wait for a finished event, then start playing the next media in the finished handler.
With a recent change to 4.x of VLC, the "end reached" event used by vlcj became instead "stopping".
The event sequence should be:
playing
stopping
stopped
playing
stopping
stopped
-playing
...etc...
Now, following that same idiom the events are inconsistently (a race):
playing
stopping
playing
stopping
playing
...etc...
So the stopped event does not fire.
In theory, the fix is just to move "finished" processing to "stop" - making sure not to request new media until after a stopped event is received.
The text was updated successfully, but these errors were encountered:
For a long time, the idiom in vlcj to play multiple media one after the other was to wait for a finished event, then start playing the next media in the finished handler.
With a recent change to 4.x of VLC, the "end reached" event used by vlcj became instead "stopping".
The event sequence should be:
Now, following that same idiom the events are inconsistently (a race):
So the stopped event does not fire.
In theory, the fix is just to move "finished" processing to "stop" - making sure not to request new media until after a stopped event is received.
The text was updated successfully, but these errors were encountered: