The reasons why the recording server leaves the channel. You can perform a bitwise AND operation on the code and each enum value, and those with non-zero results are the reason for the exit. For example, if you perform a bit-by-bit AND operation on code 6 (0b110) and each enum value, only
LEAVE_CODE_SIG (0b10) and
LEAVE_CODE_NO_USERS (0b100) get a non-zero result. The reasons for exiting, in this case, include a timeout and a signal triggering the exit.
0: The initialization fails.
1: The AgoraCoreService process receives the SIGINT signal.
2: The recording server automatically leaves the channel and stops recording because the channel has no user.
3: Ignore it.
4: The recording server calls the leaveChannel method to leave the channel.