Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Resources

Use Android SDK to develop mobile applications for streaming video and calls.

Download WCS Android SDK as .aar file
http://flashphoner.com/downloads/builds/flashphoner_client/wcs-android-sdk/aarDownload full WCS Android SDK build including examples and API documentation
httphttps://docs.flashphoner.com/downloadsdisplay/builds/flashphoner_client/wcs-android-sdkANDROIDSDK1EN/Android+SDK+release+notes

Read API documentation online
http://flashphoner.com/docs/api/WCS5/client/android-sdk/latest

...

To test compiled applications, download The full build with the examples And install the .apk file to your Android device.

Differences between Android SDK versions

In Android SDK 1.1 WebRTC library libjingle_peerconnection.jar is updated to actual version. So Android SDK 1.1 requires Android API 26, i.e. application build with Android SDK 1.1 will run on Android 8 and higher. Use Android SDK 1.0 to support previous Android versions.

When publishing in Google Play, two APKs can be deployed - one for each of the Android SDK versions - for compatibility with devices with API lower and higher than 26.

Preparing examples for building

If you have some experience in developing Android apps, you can simply download the aar-library and link it to the project manually, then configure building.

...

Code Block
languagebash
themeRDark
git clone -b 1.0 git@github.com:flashphoner/wcs-android-sdk-samples.git

...

Code Block
languagebash
themeRDark
wget http://flashphoner.com/downloads/builds/flashphoner_client/wcs-android-sdk/aar1.0/wcs-android-sdk-1.0.1.2x.aar
cp wcs-android-sdk-1.0.1.2x.aar export

3. Open the 'export' folder and execute the export.sh script that will prepare configs for further building. The result is placed into the 'output' folder.

Code Block
languagebash
themeRDark
cd export
./export.sh wcs-android-sdk-1.0.1.2.aarx.aar
Warning
This step is very important because application examples source code is the same for different versions of Android SDK. export.sh script automatically sets miniman required Android API version for building examples depending on Android SDK version

4. Edit the local.properties file and specify paths to Android SDK and NDK

...

Code Block
languagebash
themeRDark
ndk.dir=/opt/android-ndk-r12b
sdk.dir=/opt/android-sdk-linux

Building examples with Gradle

Prepare examples for building, then go to the 'output' folder and start building:

Code Block
languagebash
themeRDark
cd output
gradle build

Building examples in Android Studio

Prepare examples for building and put them to the 'output' folder, then rename it to 'wcs_android_sdk_samples', for instance.

...

The building result is .apk files located in the corresponding folders: 2players/build, click-to-call/build, and so on.
The Android SDK file is located in the following path in the project: libs/wcs-android-sdk-1.0.1.2.aar

Known issues

1. It is impossible now to set microphone gain in Android SDK while publishing stream.