Openwebrtc server and android client demo installation, openwebrtcandroid
The original connection is: http://blog.csdn.net/freewebsys/article/details/46649667 reprint please be sure to indicate the source!
1. About openwebrtc
OpenWebRTC is an open-source, cross-platform WebRTC client framework based on Gstreamer. It supports H.264 and vp8. With OpenWebRTC, WebRTC is no longer just a pure browser technology. You can use WebRTC in NativeAPP and connect it with WebRTC.
2. Install the server demo
The demo uses nodejs as the server. Centos installation:
yum install nodejs nodejs-devel
Download the example code:
Cd/Alibaba it clone https://github.com/EricssonResearch/openwebrtc-examples.gitcd openwebrtc-examples/web # Start nohup node channel_server.js & # default port 8080
Installation Documentation Reference:
Https://github.com/EricssonResearch/openwebrtc-examples/tree/master/web
Then you can make videos on the web and use the webrtc browser. First, create a room, then let another client, join and call.
3. android client demo
Download the latest android studio and configure it. Compile the android project.
Https://github.com/EricssonResearch/openwebrtc-examples/tree/master/android/NativeCall
The project NativeCall is the client sdkdemo. Rough.
Note that the compilation generates a warning. Add configuration: abortOnError: false
apply plugin: 'com.android.application'android { compileSdkVersion 22 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.ericsson.research.owr.examples.nativecall" minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" ndk { abiFilter "armeabi-v7a" } }// compileOptions {// sourceCompatibility JavaVersion.VERSION_1_7// targetCompatibility JavaVersion.VERSION_1_7// } productFlavors { } android { lintOptions { abortOnError false } }}dependencies {// See settings.gradle for local dev instructions// compile project(':openwebrtc-sdk') compile 'io.openwebrtc:openwebrtc-android-sdk:0.1.0'}
BuildToolsVersion is modified based on your own version.
Modify the config configuration, enter the app, and then modify it. Assume that the service is installed at 192.168.1.60.
package com.ericsson.research.owr.examples.nativecall;public class Config { /* Changing this does not take effect until app user data is cleared or the app is uninstalled. The server address can be configured inside the application by pressing the icon in the top right. */ //public static final String DEFAULT_SERVER_ADDRESS = "http://demo.openwebrtc.io:38080"; public static final String DEFAULT_SERVER_ADDRESS = "http://192.168.1.60:8080"; public static final String STUN_SERVER = "mmt-stun.verkstad.net";}
4. Summary
The original connection is: http://blog.csdn.net/freewebsys/article/details/46649667 reprint please be sure to indicate the source!
The android client can perform video with the web Client, but it seems that there is a sound in the wood and you need to study it again.
With openwebrtc, you can easily build a web video chat. However, there are still many optimizations. Continue the study.