├── .gitignore ├── s ├── websocket-chat │ ├── startup.sh │ ├── package.json │ ├── manifest.json │ ├── index.html │ ├── chatclient.js │ └── chatserver.js ├── webrtc-capturestill │ ├── manifest.json │ ├── main.css │ ├── index.html │ └── capture.js ├── webrtc-simple-datachannel │ ├── manifest.json │ ├── main.css │ ├── index.html │ └── main.js ├── README.md ├── webrtc-from-chat │ ├── manifest.json │ ├── README.md │ ├── startup.sh │ ├── package.json │ ├── index.html │ ├── package-lock.json │ ├── chat.css │ ├── chatserver.js │ ├── chatclient.js │ └── adapter.js └── shared.css ├── v └── README.md ├── snippets └── html │ └── iframe-simple-contents.html ├── tools └── extract-function │ ├── extract-function.js │ ├── package.json │ └── test.js ├── main.css ├── .jshintrc ├── .jscsrc ├── CODE_OF_CONDUCT.md ├── package.json ├── index.html ├── css └── main.css ├── README.md ├── user-data.sh ├── startup.py ├── 01-mdn-samples.conf ├── update.sh ├── index.js └── LICENSE.md /.gitignore: -------------------------------------------------------------------------------- 1 | docs/ 2 | node_modules/ 3 | 4 | *.js-bak 5 | .vscode 6 | .remote-sync.json 7 | -------------------------------------------------------------------------------- /s/websocket-chat/startup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | npm install websocket 4 | node chatserver.js 5 | -------------------------------------------------------------------------------- /v/README.md: -------------------------------------------------------------------------------- 1 | mdn-samples/v 2 | ============= 3 | 4 | This directory was set up for storing video files but we are probably not going to use it so it will likely go away very soon. 5 | -------------------------------------------------------------------------------- /s/websocket-chat/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "websocket-chat", 3 | "version": "1.0.0", 4 | "description": "A simple WebSocket-based chat server.", 5 | "dependencies": { 6 | "websocket": "^1.0.29" 7 | } 8 | } -------------------------------------------------------------------------------- /s/websocket-chat/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WebSocket based chat server", 3 | "docsUrl": "https://developer.mozilla.org/en-US/docs/Web/API/WebSocket_API", 4 | "description": "Uses Node.js to set up a WebSocket-based chat server, and provides a web page you can use to join the chat." 5 | } 6 | -------------------------------------------------------------------------------- /s/webrtc-capturestill/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WebRTC Still Photo Sample", 3 | "docsUrl": "https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Taking_still_photos", 4 | "description": "Uses WebRTC's getUserMedia() API, a