Code Monkey home page Code Monkey logo

simplewebrtc's Introduction

SimpleWebRTCExample

This is simple WebRTC Exmaple project for iOS written in Swift. result

Feature

  • Super simple WebRTC example project written in Swift.
  • Example command lines to build WebRTC.framework.here
  • Includes prebuild WebRTC.framework here. (This is for TEST ONLY.)
  • Datachannel implementation (text and bytes).
  • File Source implementation.
  • Camera position switching(tap local camera view.)
  • Includes super simple signaling server written in node.js.

Dependency

  • Xcode version 10.3
  • Swift version 5
  • WebRTC framework
  • Starscream (for websocket)

Setup

  • You need to add WebRTC.framework to your xcode project. see how_to_add
  • You need to setup signaling server.
    This project includes simple one at SimpleWebRTCExample_iOS/SignalingServer/.
    You can setup node.js as folows.
    • cd SimpleWebRTCExample_iOS/SignalingServer
    • npm install

Usage

  • Firstly, run the signaling server as folows.
    • cd SimpleWebRTCExample_iOS/SignalingServer
    • node server.js node.js server will start at 8080 port.
  • Change signaling server url ( the ipAddress String vallue) to your case in ViewController.swift. You can find your signaling server url in signaling server log.
  • Then, run SinmpleWebRTC on your device or simulator. This example need totaly two devices(simulator & simulator is OK)
  • Check websocket connection state on your device. If it is connected, you can tap call button. WebRTC will be connected.
  • You can send like with like button. You can send plain messages with message button.
  • Enjoy.

Licence

This software is released under the MIT License, see LICENSE.

simplewebrtc's People

Contributors

dohienhdt avatar

Watchers

 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.