Sign inSign up

nas2docker/gst_webrtc_signalling

By nas2docker

Updated almost 7 years ago

Image
0

6.8K

nas2docker/gst_webrtc_signalling repository overview

Overview

Read Protocol.md

Dependencies

  • Python 3
  • pip3 install --user websockets

Example usage

In three separate tabs, run consecutively:

$ ./generate_cert.sh
$ ./simple-server.py
Session Based
$ ./session-client.py
Our uid is 'ws-test-client-8f63b9'
$ ./session-client.py --call ws-test-client-8f63b9
Room Based
$ ./room-client.py --room 123
Our uid is 'ws-test-client-bdb5b9'
Got ROOM_OK for room '123'

Another window

$ ./room-client.py --room 123
Our uid is 'ws-test-client-78b59a'
Got ROOM_OK for room '123'
Sending offer to 'ws-test-client-bdb5b9'
Sent: ROOM_PEER_MSG ws-test-client-bdb5b9 {"sdp": "initial sdp"}
Got answer from 'ws-test-client-bdb5b9': {"sdp": "reply sdp"}

.. and similar output with more clients in the same room.

Tag summary

Content type

Image

Digest

Size

341.3 MB

Last updated

almost 7 years ago

docker pull nas2docker/gst_webrtc_signalling