Giter Club home page Giter Club logo

webrtcunitypluginsample's Introduction

About

Sample unity3d project to demonstrate WebRTC official unity plugin. with simple WebRTC signaling implemented with Socket.IO.

Requirements

  • Unity3D 2017.3+
  • node.js

Using Libraries

Instructions

launch signaling server

  • On Windows:
> server.bat

or

  • On Mac/Linux
npm install
node index.js
  • Output Log
>call npm install
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
...

listening on *:3000
forwarding to global domain...
ngrok server: https://440ab904.ngrok.io
  • The last "ngrok server" part is IMPORTANT!
  • the server URL lasts for 24 hours only. After that, you need to restart server for another 24 hours.

Launch unity app

build and run unity project.

Start WebRTC on unity app

  • set the above ngrok server URL to app's server URL field. (but use http:// rather than https://)
  • push Connect button
  • push Offer with Camera button

Start the other side of WebRTC

  • browse the above ngrok server URL with web browser. (the web browser needs to support WebRTC).
  • push Start Camera button
  • push Start Peer button

Signaling

This sample use signaling with http long polling of Socket.IO. Very dirty implementation that doesnot handle bad states or errors.

Caution

Beware that WebRTC may use very much bandwidth! Beware especially if you are not using fixed price connection.

webrtcunitypluginsample's People

Contributors

mhama 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.