If Error: 3, with stat_code:16 is reported, the recording quits normally. You can determine why the recording quit by the leave_path code.
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.
Typically, a recording session exits because a timeout occurs. Search for "No users in channel" in recording_sys.log
to confirm.
The recording crashes if the following scenarios occur:
uid_xxx.txt
file has no close information about the MPEG-4 file.Users of the Recording SDK v2.2.3 or later can check the crash.log file generated in the same directory as AgoraCoreService.
Users of the Recording SDK versions earlier than v2.2.3 can check if there is a core file generated in the same directory as AgoraCoreService.
To fix this issue, set the codec
property as "h264" when calling the createClient
method on the web client. If the codec
property is "vp8", the recorded video files of the native client are in webm format.