After the SDK download and decompression is complete, the following figure:
After decompression, as shown in reference number 2, contains include, libs directory, where,
include directory: contains SDK header file - LiveRoom.h.
libs directory: so file containing SDK--libzegoliveroomrecorder.so.
3 Integrated SDK
3.1 Add Header Files
Add the header file (LiveRoom.h) in the include directory of the SDK package to the header file directory of the existing project. The project needs to add the link path of its header file directory.
3.2 Linking Dynamic Libraries
Add the so file (libzegoliveroomrecorder.so) in the libs directory of the SDK package to the library file directory of the existing project or a custom directory, and the project needs to add the link path of the so file.
4 Integration Example
Take the integration method of demo recording on the server as an example.
4.1 New Project
Assume that the project code is placed in the ~/zegoServerRecordingDemo directory.
$ mkdir ~/zegoServerRecordingDemo
4.2 Copy SDK
Copy the include/ and libs/ folders to the ~/zegoServerRecordingDemo directory.
$ cp -r include libs ~/zegoServerRecordingDemo
$ cd ~/zegoServerRecordingDemo
4.3 New main.cpp
Create a new main.cpp file and print the SDK version number.