Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

WebRTC คืออะไร?

WebRTC ถูกนำเสนอโดย World Wide Web Consortium (W3C) รองรับ browser-to-browser applications สำหรับ voice calling, video chat, และ P2P file sharing

WebRTC implement 3 APIs:

  • MediaStream - เข้าถึงกล้องและไมโครโฟนของผู้ใช้
  • RTCPeerConnection - เข้าถึงการโทรเสียง/วิดีโอ
  • RTCDataChannel - เข้าถึง peer-to-peer communication

WebRTC ต้องการ peer-to-peer communication ระหว่างเบราว์เซอร์ กลไกนี้ต้องการ signaling, network information, session control และ media information นักพัฒนาเว็บสามารถเลือกกลไกต่างๆ เช่น SIP หรือ XMPP หรือการสื่อสารสองทางใดๆ