Command line example in wasm.gpac.io : 
_gpac -i https://bevara.ddns.net/test-signals/mpeg1/medical_demo.mpg -sloop vout_

produce the following error when looping :
_session done, restarting (loop 1)
Aborted(Assertion failed: emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.)_

It is likely that the playing loop _em_main_loop_ is restarted before _emscripten_cancel_main_loop_ is called. 

The sloop argument is mainly given for testing, if there is no fix on this argument, is there a way to play a video in loop into a canvas?
GPAC wasm failed at playing video file in loop with sloop
This is a GitHub Issue
repo:gpac
owner:gpac
Title : GPAC wasm failed at playing video file in loop with sloop
Issue date:

--- start body ---
Command line example in wasm.gpac.io : 
_gpac -i https://bevara.ddns.net/test-signals/mpeg1/medical_demo.mpg -sloop vout_

produce the following error when looping :
_session done, restarting (loop 1)
Aborted(Assertion failed: emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.)_

It is likely that the playing loop _em_main_loop_ is restarted before _emscripten_cancel_main_loop_ is called. 

The sloop argument is mainly given for testing, if there is no fix on this argument, is there a way to play a video in loop into a canvas?
--- end body ---
