Video Streaming Over Websockets

非 Y 不嫁゛ 提交于 2019-12-05 21:33:44

You're missing something.

  • webRTC works very well on mobile. There are examples/white clients in the reference code (appRTCDEMO) at webrtc.org for both iOS and android, and multiple apps out there. Last one to have been announced was appear.in

  • getting the video and audio stream from the stream is part of the media API and not webRTC API per say (getusermedia).

  • webRTC is really the p2p connection (RTCPeerConnection: transport and firewall traversal) and the media engine (encoding, packeting, encrypting) of the equation and exactly what you re looking for.

  • webSockets is just a transport mechanism. It does not handle firewall/nat traversal, media processing, and packeting/chunking that you would have then to implement at application level.

  • as far as the signaling is concerned, webRTC does not specify/impose any protocol, and the seemingly usual way to do it is to set up a signaling server. The app usually connects to that server using web socket or XHR, or something else to do the original handshake/call set up. Many app abstracts this by using libraries like socket.io.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!