GithubHelp home page GithubHelp logo

webrtc_ios's Introduction

WebRTC_iOS

Build Status

下载与编译

WebRTC.framework下载与编译,可以看这篇文章iOS下载、编译WebRTC

使用

需要一个服务器端,交换sdp、ice,使用的是tuyaohui用nodejs写好的后台,交互用的是WebSocket,请在WebRTC中下载SkyRTC-demo-master,我刚开始学习WebRTC也是从iOS下音视频通信-基于WebRTC学习,写的很棒,但是因为该WebRTC版本与openssl冲突,所以,我从官网下载了新的版本,编译后,用新版本写了demo

安装Node.js及npm环境,SkyRTC-demo-master下载后,启动

cd SkyRTC-demo-master
node server.js

修改IP地址为你电脑的IP地址,172.16.102.59是我的IP地址

[[WebRTCHelper sharedInstance] connectServer:@"172.16.102.59" port:@"3000" room:@"100"];

测试

模拟器无法进行视频通信,如果进行视频测试,请准备两个iPhone 手机需要和电脑同处一个局域网(wifi下),跨网通信需要有效的STUN Server,我没有找到,所以只能在局域网中使用,如果有人找到了,可以分享给我(捂脸)

参考文章

iOS下音视频通信-基于WebRTC

webrtc_ios's People

Contributors

mfjun avatar

Watchers

 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.