Skip to content
/ joyrtc Public

You can use this tool, use WebRTC control some devices, but current only unity

License

Notifications You must be signed in to change notification settings

binbat/joyrtc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

306d2b3 · Dec 25, 2023
Dec 25, 2023
Nov 20, 2023
Oct 30, 2023
Dec 25, 2023
Dec 25, 2023
Dec 25, 2023
Dec 4, 2023
Jul 22, 2023
Dec 25, 2023
Jun 25, 2023
Oct 30, 2023
Jul 8, 2023
Jul 8, 2023
Jul 8, 2023

Repository files navigation

JoyRTC

You can use this tool to control some devices using WebRTC, but currently only unity

Architecture

joyrtc-arch

Run

Use docker run

docker run --name joyrtc --rm --network host -e TURN_HOSTNAME=turn:turn.22333.fun -e TURN_USERNAME=22333 -e TURN_PASSWORD=22333 ghcr.io/binbat/joyrtc:main

Cloud

LISTEN=0.0.0.0:8080 go run .

Environment variables

Variable Name Description Default
LISTEN Server Listen Address 0.0.0.0:8080

WebUI Demo

npm install
npm run dev

WebComponents

TODO

Adapter

use Adapter control anything

Adapter: Light

A RTSP to WebRTC forwarder

go run . -src rtsp://localhost:8554/mystream -server ws://localhost:8080/socket

Adapter: Unity

Unity Version: 2022.1.23f1

NOTE: Don't use unity.cn !!! unity.cn version not compatible docker image!!!

Use Unity run

NOTE: Do not use safemode, The first run need auto install websocket-sharp

Maybe manual install websocket-sharp

pushd unity/Assets && nuget install && popd

Environment variables

Variable Name Description Default
ICE_SERVERS Stun Server Configuration
TURN_HOSTNAME Turn Server Address Configuration
TURN_USERNAME Turn Server Username, Need set TURN_HOSTNAME
TURN_PASSWORD Turn Server Password, Need set TURN_HOSTNAME
SERVER_URL WebSocket Signal Address ws://localhost:8080/socket