Code Monkey home page Code Monkey logo

androidp2ptest's Introduction

AndroidP2pTest

两个android客户端进行点对点(p2p)及时通信,通信内容可以文字,图片,文件。

快速开始

运行项目,在log中查看到

onId data=Nzs3jmD5g876WCpcAAEH

其中data后为当前设备id,id 每次运行都会变,把id赋值给 RtcActivity.callerId ,运行到另一台设备上,启动后会自己建立连接

待log出现以下输出,表明连接建立,

registerObserver onStateChangeOPEN
Peer onDataChannel=org.webrtc.DataChannel@bf04e5c

可在输入框输入文字,->发送,另一设备将会收到并显示,发送图片,发送文件按钮一样,内部已处理64k 自动分包问题 详细参考我的文章:Android P2P 通信方案探索

Image text

androidp2ptest's People

Contributors

zihao-wu avatar

Watchers

James Cloos 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.