You can refer to this project to build a client SDK for WTN.
Before you compile the WTN SDK for Android, Android Studio must be installed.
- Get WebRTC static libraries, including static libraries for arm64-v8a architecture and armeabi-v7a architecture. See Compile the WebRTC static library.
- Add the WebRTC static library file to the client SDK project:
- Copy the header files from the WebRTC static library to:
./third_party/webrtc/headers/
- Copy the Android static library to the following path:
./third_party/webrtc/android/armeabi-v7a/libwebrtc.a
./third_party/webrtc/android/arm64-v8a/libwebrtc.a
- Copy the .jar file to the following path:
./third_party/webrtc/android/jar/libwebrtc.jar
- Copy the header files from the WebRTC static library to:
Open ./sdk/android
with Android Studio.
Before you compile the WTN SDK for iOS, Xcode and CMake must be installed.
- Get WebRTC static libraries, including static libraries for arm64 architecture and armv7 architecture. See Compile the WebRTC static library.
- Add the WebRTC static library file to the client SDK project:
- Copy the header files from the WebRTC static library to
./third_party/webrtc/headers/
; - Copy the iOS static library to
./third_party/webrtc/ios/libwebrtc.a
.
- Copy the header files from the WebRTC static library to
cd to TalWTN/SDK/
, and excute:
cmake -GXcode -DRTC_PLATFORM=ios -Bbuild_ios
cd build_ios
open veWTN-All.xcodeproj // Use Xcode
The structure of the project:
├── cmake
│ └── toolchains
├── doc
├── sdk
│ ├── android
│ └── ios
├── src
└── third_party
├── boost_1_69_0
└── webrtc
├── android
├── headers
└── ios