From e7e1200d168d0489fd122d457f640d8e2a5d8066 Mon Sep 17 00:00:00 2001 From: Nito Buendia Date: Sun, 22 Apr 2018 16:26:13 +0800 Subject: [PATCH 1/3] Add FAQs Create first take on FAQs, including: - Using other technologies other than node.js - Putting the codelab and/or WebRTC on a server. - Connecting several peers. - Doing more than just video/audio conferencing. --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef508a8..ddd4f10 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,29 @@ 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. \ No newline at end of file +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 use WebRTC in a 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. [Read more](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). From d1d52f5a4df80318ecc8cea02b08fab0ddf00c89 Mon Sep 17 00:00:00 2001 From: Nito Buendia Date: Mon, 23 Apr 2018 18:43:42 +0800 Subject: [PATCH 2/3] Clarify question and HTTPS mentions. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ddd4f10..4251b1d 100644 --- a/README.md +++ b/README.md @@ -32,15 +32,15 @@ Yes. While this Codelab is built using Node.js in order to [enable signaling](ht 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 use WebRTC in a 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 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. 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. From 07209d53b55becc9cfbe05489dd2423a6d69f7f4 Mon Sep 17 00:00:00 2001 From: Nito Buendia Date: Mon, 23 Apr 2018 21:30:35 +0800 Subject: [PATCH 3/3] Documentation links for multiple peer connection Add further examples from WebRTC samples on multiple peer conection --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4251b1d..16c8eee 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,9 @@ However, you can use the base code to get you started. From there, you would nee 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. [Read more](https://github.com/googlecodelabs/webrtc-web/issues/72). +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).