How to loop the svo file?

Hi,

I can run the sample code with svo file, is there any option I can keep the svo file looping forever?

Thx

The Camera::grab function will return ERROR_CODE::END_OF_SVOFILE_REACHED ERROR_CODE Class Reference | API Reference | Stereolabs
in this case you can call Camera::set_svo_position(0)
(Camera Class Reference | API Reference | Stereolabs)

Yes, it works. Thx

        if zed.grab(runtime_params) == sl.ERROR_CODE.SUCCESS:
...
        else:
            zed.set_svo_position(0)