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 (binary 110) and each enum value, only
LEAVE_CODE_SIG (binary 10) and
LEAVE_CODE_NO_USERS (binary 100) 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.
2 (binary 10): The AgoraCoreService process receives the SIGINT signal.
4 (binary 100): The recording server automatically leaves the channel and stops recording because the channel has no user.
8 (binary 1000): Ignore it.
16 (binary 10000): The recording server calls the leaveChannel method to leave the channel.