Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FAQs #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,31 @@ This is a work in progress. If you find a mistake or have a suggestion, please [

## For 'step-04', 'step-05', 'step-06'

Run `npm install` before running the code.
Run `npm install` before running the code.

## Frequently Asked Questions

### Can I use WebRTC in PHP, Python or other backend languages?
Yes. While this Codelab is built using Node.js in order to [enable signaling](https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/) between peers, [WebRTC](https://webrtc.org) is a web API that can be used in any web server or backend.

There are several repositories on GitHub built in [PHP](https://github.com/search?l=php&q=webrtc&type=Repositories) or [Python](https://github.com/search?l=Python&q=webrtc&type=Repositories) that can help you get started.

### Can I run a WebRTC app from a remote server?
Yes. WebRTC is a web API which is intended to be used in a real server. However, note that in order for WebRTC to work, you will need to serve over HTTPS and have your own [signaling system](https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/).

### Can this codelab be hosted on a server?
The objective of this codelab is to show and teach how WebRTC works. As a result, the code is not thought or intended to be directly hosted in a server or production environment.

However, you can use the base code to get you started. From there, you would need to get at least the [following relevant changes](https://github.com/googlecodelabs/webrtc-web/issues/70):

1. Migrate from HTTP to HTTPS. [Read more](https://github.com/googlecodelabs/webrtc-web/issues/48).
1. Enabling [signaling using STUN and TURN servers](https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/) to ensure peers can connect using your service.
1. Rewriting some of the signaling code to ensure that communication only happens across the right peers instead of broadcasting to all connected peers.

### Can we have more than two peers connected using WebRTC?
Yes. The codelab is limitting to two peers per room; but WebRTC can handle multiple connections. You can see a [live demo](https://webrtc.github.io/samples/src/content/peerconnection/multiple/) on the WebRTC samples ([code](https://github.com/webrtc/samples/tree/gh-pages/src/content/peerconnection/multiple)).

If you are trying to modify the codelab to support multiple peers per room, you can read the instructions on [this issue](https://github.com/googlecodelabs/webrtc-web/issues/72).

### Is WebRTC only used for video conferencing?
No, WebRTC can be used for all sorts of Real-Time Communications; including messages or files. You can see more applications on the [WebRTC samples](https://github.com/webrtc/samples).