![]() ![]() Obviously, this app isn't doing anything interesting yet. You should see a page that looks like this, which corresponds to work/index.html: Click the URL under Web Server URL(s) to see your work in your web browser.Toggle Web Server: Started twice to stop and restart the server.Under Options (may require restart), select the Automatically show index.html checkbox.Under Web Server URL(s), you see the URL where you can view your work in progress in Select the work folder that you created.Click Add to Chrome, which installs Web Server for Chrome and automatically opens your Google apps in a new tab.Ī dialog appears, which allows you to configure your local web server:.If you don't have Web Server for Chrome, click this link to install it from the Chrome Web Store:.While you're free to use your own web server, this codelab is designed to work well with Web Server for Chrome. The step-nn folders contain a finished version for each step of this codelab. You do all your code work in the directory named work. Open the downloaded zip file to unpack a project folder named webrtc-web-master, which contains one folder for each step of this codelab and all the resources that you need.If you're familiar with Git, run this command to clone the code for this codelab from GitHub:Īlternatively, click this link to download a zip file of the code:.Web Server for Chrome or a web server of your choice.Take a photo and use a data channel to share it.Set up a signaling service to exchange messages.Basic knowledge of HTML, CSS, and JavaScript.You also learn how to use the core WebRTC APIs and set up a messaging server with Node.js. This codelab teaches you how to build an app to get video and take snapshots with your webcam, and share them peer-to-peer with WebRTC.
0 Comments
Leave a Reply. |