EndOfMedia doesn't fire reliably with setLoops(1). Instead, use Infinite loops and detect the loop restart via position jumping from near-end back to 0. Pause and emit play_next when in Next mode. Toggle takes effect immediately.
EndOfMedia doesn't fire reliably with setLoops(1). Instead, use Infinite loops and detect the loop restart via position jumping from near-end back to 0. Pause and emit play_next when in Next mode. Toggle takes effect immediately.