全能電路設計實戰

2018年6月4日 星期一

HTML5-WebRTC



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)的縮寫,它主要用來讓瀏覽器即時獲取和交換視頻、音訊和資料。
WebRTC共分三個API
·         MediaStreamgetUserMedia
·         RTCPeerConnection
·         RTCDataChannel

getUserMedia主要用於獲取視頻和音訊資訊,後兩個API用於覽器之間的資料交換。
https://webrtc.github.io/samples/src/content/getusermedia/gum/

Demo:



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.


沒有留言 :

張貼留言