OPENWEBRTC Server and Android client demo installation

Source: Internet
Author: User

The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/46649667 reprint please must indicate the source!

1, about OPENWEBRTC

OPENWEBRTC is an open-source, cross-platform, WebRTC client-side framework based on Gstreamer, supporting both H. S and VP8. Using OPENWEBRTC,WEBRTC is no longer just a purely browser technology, you can use WEBRTC in Nativeapp, and you can also connect with your browser webrtc.

2, install the service side demo

Demo uses Nodejs to do the server. CentOS Installation:

install nodejs nodejs-devel

Download example code:

cd /datagit clone https://github.com/EricssonResearch/openwebrtc-examples.gitcd openwebrtc-examples/web#启动nohup node channel_server.js &#默认端口8080

Installation Documentation Reference:
Https://github.com/EricssonResearch/openwebrtc-examples/tree/master/web

Then you can make a video on the web, using a browser that spends WEBRTC. Create the room first, and then let another client, join, call again.

3,android Client Demo

Download the latest Android studio, configure it well. Compile the Android project.
Https://github.com/EricssonResearch/openwebrtc-examples/tree/master/android/NativeCall
Project Nativecall is a client sdkdemo. More coarse.
It is important to note that the compilation will warn you. Added configuration: abortonerror:false

Apply plugin:' Com.android.application 'Android {Compilesdkversion ABuildtoolsversion"21.1.2"Defaultconfig {ApplicationID"Com.ericsson.research.owr.examples.nativecall"Minsdkversion -Targetsdkversion AVersioncode1Versionname"1.0"NDK {Abifilter"armeabi-v7a"}    }//Compileoptions {//Sourcecompatibility javaversion.version_1_7//Targetcompatibility javaversion.version_1_7//    }Productflavors {} android {lintoptions {abortonerrorfalse}}}dependencies {//See settings.gradle for local dev instructions//Compile project (': Openwebrtc-sdk ')Compile' io.openwebrtc:openwebrtc-android-sdk:0.1.0 '}

Where Buildtoolsversion is modified according to its own version.

Modify config configuration, enter the app and then modify the line. Assume that the service is installed in 192.168.1.60.

 PackageCom.ericsson.research.owr.examples.nativecall; Public  class Config {    / * Changing this does don't take effect until app user data are cleared or the app is uninstalled.     The server address can 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 FinalString default_server_address ="http://192.168.1.60:8080"; Public Static FinalString Stun_server ="Mmt-stun.verkstad.net";}
4, summary

The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/46649667 reprint please must indicate the source!

Android client, can and web-side video, but like wood has sound, need to study again.
Using OPENWEBRTC, you can easily build a web video chat. But there are plenty of places to optimize. Continue to study.

OPENWEBRTC Server and Android client demo installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.