Giter Club home page Giter Club logo

flutter_webrtc_client's Introduction

Flutter WebRTC Client

WebRTC client for Android, IOS and web browsers written by Flutter.

based on this repository.

Server

You need two servers, Signaling server and Turn/Stun Server

Signaling Server

Use this repository: flutter_webrtc_server

Turn Server

For turn server use this link: coturn server

Config

Config coturn server

By using the above link, config the coturn.

  • if you want to use coturn and signaling server in the same machine, use this config in /etc/turnserver.conf
realm=coturn.meetrix.io
fingerprint
listening-ip=0.0.0.0
external-ip=127.0.0.1
listening-port=3478
min-port=10000
max-port=20000
log-file=/var/log/turnserver.log
verbose

user=my_username:my_password
lt-cred-mech
  • otherwise, use your server's public IP in 'external-ip' and 'listening-ip'

config Signaling server

  • make these changes in flutter_webrtc_server/configs/config.ini
[turn]
public_ip=127.0.0.1
port=19302
realm=coturn.meetrix.io
  • Use your TURN server's public IP above (if not localhost).

Changing the project code

  • in src/signaling.dart where there is this code
_iceServers = {
         'iceServers': [
           {
             'urls': 'turn:127.0.0.1:3478',
             'username': 'mohsen',
             'credential': 'mohsen',
           },
         ]
       };
  • change it to your turn server's public IP and use the username & password you set here Config coturn server.
    • When both servers are local, use the IP of TURN server, seen by Signaling server.

flutter_webrtc_client's People

Stargazers

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