An open API service indexing awesome lists of open source software.

https://github.com/colyseus/demo-push-to-talk

PoC: Simple "Push To Talk" example
https://github.com/colyseus/demo-push-to-talk

colyseus colyseus-sample multiplayer push-to-talk

Last synced: about 1 month ago
JSON representation

PoC: Simple "Push To Talk" example

Awesome Lists containing this project

README

          

# Colyseus: Push To Talk Example

![](screenshot.png)

This example is built for the web platform, and uses:

- [`navigator.mediaDevices.getUserMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)
- [`MediaRecorder`](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder)
- [`MediaStream`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream)
- [`Audio`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/Audio)

(Currently, doesn't work on Safari due to audio auto-play restrictions.)

## Running locally

Start the client:

```
cd client
npm install
cd start
```

Start the server:

```
cd server
npm install
npm start
```

Open [http://localhost:1234](http://localhost:1234) in your browser.

## License

MIT