通知
本站点除 Legacy 产品与方案外,已迁移至 声网新文档中心 ,当前页面不再维护
Documentation
All
Console 官网 Community Technical support

How can I solve Recording integration issues?

Type: Integration issues    Platform: Linux   Last Updated: 2020/07/08 19:06:43

When I integrate the Java SDK, the error java.land.UnsatisfiedLinkError: no recording in java.library.path occurs. How do I fix it?

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

How can I tell whether or not the recording application left the channel?

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.