WebRTC is an open source project to enable realtime communication of audio, video and data in Web and native apps. WebRTC是“網路即時通信”(Web Real Time
Communication)的縮寫,它主要用來讓瀏覽器即時獲取和交換視頻、音訊和資料。
Display the video stream from getUserMedia() in a video element.
The MediaStream object stream passed to the getUserMedia() callback is in global scope, so you can inspect it from the console.