Code Monkey home page Code Monkey logo

webrtc-android-demo-and-server's Introduction

Android-webRTC and NodeJS client

一个webRTC Demo,你可以非常简单的运行起来它,之后我会继续优化的,现在只能实现P2P的聊天功能

需要依赖:

compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.github.nkzawa:socket.io-client:0.4.2'    //webSocket相关
compile 'io.pristine:libjingle:8871@aar'    //webRTC官方aar包

如何运行它:

首先我们的服务端需要依赖于nodeJS

  1. git clone [email protected]:linsir6/webRTC-android-demo-and-Server.git
  2. 用Android-studio打开Android,需要修改app->strings.xml下面的hostprot,分别修改成电脑的局域网下的ip和运行Node服务端的端口号
  3. cd NodeServer
  4. npm install
  5. npm start
  6. 先在手机上打开apk
  7. 在浏览器端打开http://127.0.0.1:3000/
  8. 点击star Camera
  9. 点击call

如何启动

浏览器端效果图

手机端效果图

webrtc-android-demo-and-server's People

Contributors

linsir6 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.