Reason: The system environment cannot find the librecording.so
file.
Solution: Check if the java demo is compiled and the library file is generated, and then, check and configure the path of the library file.
For example, on Linux, if the path of the library file is /home/user/Desktop/tool/Agora_Recording/samples/java/bin/io/agora/recording/librecording.so
, configure LD_LIBRARY_PATH
in /etc/profile
, ~/.bash_profile
or ~/.bashrc
as follows:
LD_LIBRARY_PATH=/home/user/Desktop/tool/Agora_Recording/samples/java/bin/io/agora/recording/librecording.so
The recording application left the channel if the SDK triggers the onLeaveChannel
callback and returns the error code ERR_OK = 1.
The recording application failed to leave the channel If the SDK triggers the onError
callback instead of the onLeaveChannel
callback and returns the error code ERR_INTERNAL_FAILED = 3.