Flutterwebrtcdatachannel

A Flutter plugin allowing apps to use WebRTC DataChannel to establish P2P connection and exchange text messages.
Alternatives To Flutterwebrtcdatachannel
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Webtorrent27,6966141512 hours ago415September 12, 202297mitJavaScript
⚡️ Streaming torrent client for the web
Peerjs11,0883221146 hours ago51August 09, 2022188mitTypeScript
Simple peer-to-peer with WebRTC
Webrtc10,95417618 hours ago342September 15, 2022102mitGo
Pure Go implementation of the WebRTC API
Webtorrent Desktop9,18213 days ago27September 23, 201677mitJavaScript
❤️ Streaming torrent app for Mac, Windows, and Linux
Simple Peer6,7341,0872485 days ago121February 17, 2022107mitJavaScript
📡 Simple WebRTC video, voice, and data channels
Instant.io3,215
7 days ago3August 06, 201529mitJavaScript
🚀 Streaming file transfer over WebTorrent (torrents on the web)
Starrtc Android Demo2,903
2 years ago99
🚀starRTC,即时通讯(IM)系统,免费IM系统(含单聊,群聊,聊天室,文件传输),免费一对一视频聊天,VOIP,语音对讲(回音消除),直播连麦,视频直播,RTSP拉流,RTMP推流,webRTC服务端,在线教育,白板,小班课,在线会议,视频会议,视频监控,局域网直连(无需服务器),兼容webRTC, 支持webRTC加速,P2P高清传输,安卓、iOS、web互通,支持门禁对讲,可视对讲,电视盒子,树莓派,海思,全志,任天堂switch,云游戏,OTT设备,物联网平台,C语言自研方案,支持二次开发成类微信,类映客等APP,✨万水千山总是情,来个star行不行✨,更多示例请访问:
Metastream2,165
4 months ago197mitTypeScript
Watch streaming media with friends.
Awesome Peer To Peer1,751
2 years ago8other
A list of peer-to-peer resources.
Mirotalk1,739
an hour ago7agpl-3.0JavaScript
🚀 WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms.
Alternatives To Flutterwebrtcdatachannel
Select To Compare


Alternative Project Comparisons
Readme

Flutter WebRTC DataChannel plugin

This plugin allows Flutter apps to use WebRTC DataChannel to establish P2P connection and exchange text messages.

Install

Plugin dependency:

webrtc_data_channel: "^0.1.0"

WebRTC Android dependency:

rootProject.allprojects {
    repositories {
        maven {
            url  "https://google.bintray.com/webrtc"
        }
    }
}

dependencies {
    api 'org.webrtc:google-webrtc:1.0.22672'
}

WebRTC iOS dependency:

pod 'GoogleWebRTC', '1.1.22642'

Usage

import 'package:webrtc_data_channel/webrtc_data_channel.dart';

// create DataChannel and connect to room
WebRTCDataChannel _dataChannel = new WebRTCDataChannel();
_dataChannel.connect(_roomUrl, _roomId);

// listen for messages
_receivedMessages = _dataChannel.listenMessages()
        .listen((String message) {
            // handle message
        });

// send message
_dataChannel.sendMessage(message);

// disconnect from room
_dataChannel.disconnect();

Server setup

This plugin use webrtc/apprtc as room server and signal server, you can use https://appr.tc/ or deploy it yourself, I've a Docker image for it, piasy/apprtc-server.

Development setup

  • git clone https://github.com/Piasy/webrtc_data_channel
  • flutter create -t plugin webrtc_data_channel
  • cd webrtc_data_channel/example/ios && pod install
Popular P2p Projects
Popular Webrtc Projects
Popular Networking Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Plugin
Objective C
Flutter
Webrtc
P2p