Is it possible now to use GetUserMedia API to read video stream from web camera and send it directly to server for further broadcasting?

paperstreet7

I need to build a web application that uses WebRTC to get web camera video stream and mic audio stream and immediatelly translate it to the server for further broadcasting to multiple clients. The app must do it in real time in full duplex. I mean it would be a kind of live video chat. It would be some sort of educational app. So the question is: is it possible now? What technologies should I use? Should I use WebRTC with WebSocket and Node.js on the backend? Or can I use php instead of node? Can I use Socket.io for that? Is there any other ways to achieve this? May be flash?

HartleySan

The PeerConnection API in WebRTC does not require a back-end server for conducting one or more connections between peers.

The only thing you need a back-end server for is to serve as a mediator for first establishing the connections between the peers. To that end, you can use the WebSocket API, Ajax, or any other means necessary to achieve that. Also, yes, you can use PHP to write the server-side for WebSocket (or whatever method you want to use to establish the peer-to-peer connection). It's really up to you.

At the moment, only Chrome and Firefox support enough of the WebRTC APIs to make video chatting a possibility. Very soon though, Opera will likely join the mix, but no one's sure yet whether WebRTC will be added to IE11 or not, and Apple seems to have no intention of adding WebRTC to Safari any time soon (because they have their own proprietary technology for that; sound familiar?!).

Anyway, WebRTC is your best bet. As an added note, I don't think it's possible to use JS to send video and audio to a server, and then have the server forward that data to the other peer(s). Instead, you need to use WebRTC to establish peer-to-peer connections, and then go from there.

Edit: If you use a TURN server, you can reroute your audio and video data through a server, but that's actually the least ideal situation, and you can still only do that if you're using the WebRTC APIs.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is it possible now to use GetUserMedia API to read video stream from web camera and send it directly to server for further broadcasting?

From Dev

How to send video (from getUserMedia) to Node.js server?

From Dev

Send video stream from iOS7 camera to JavaScript Canvas in web view

From Dev

Python: Send an Image to a Flask API to be stored on a server for further use

From Dev

Python: Send an Image to a Flask API to be stored on a server for further use

From Dev

Possible approaches to stream video from an IP camera to chromecast or raspberry pi

From Dev

stream video from pi camera to browser of remote server

From Dev

stream video from pi camera to browser of remote server

From Dev

Avconv broadcasting video stream

From Dev

Send stream from getUserMedia to a nodejs BackEnd and Resend it to google-cloud-platform speech API

From Dev

Web API : Read the image send from the app

From Dev

Web page that shows a video stream from a local server

From Dev

Make video stream Optional in getUserMedia

From Dev

How to send a video stream to a server in C#?

From Dev

Send video stream/images to a websocket server

From Dev

Stream data from Browser to nodejs server using getUserMedia

From Dev

Is it possible to use WebRTC to streaming video from Server to Client?

From Dev

Is it possible to use the H264 stream from my camera without reencoding to an RTMP endpoint?

From Dev

Unable to send video as rtp stream from android

From Dev

Is it possible to detect when the camera is on/ready with getUserMedia?

From Dev

Should I use web sockets to pull data from server or just a flag and use that flag to send API request for data?

From Dev

Video upload using youtube/google API directly from server using node.js?

From Dev

Video upload using youtube/google API directly from server using node.js?

From Dev

Stream video content through Web API 2

From Dev

Stream video content through Web API 2

From Dev

JS Get image directly from video stream as data url

From Dev

Send webRTC getUserMedia webCam stream over socketio

From Dev

Android Camera2 API send stream buffer to native function

From Dev

Is it possible to save php values from a form for further use?

Related Related

  1. 1

    Is it possible now to use GetUserMedia API to read video stream from web camera and send it directly to server for further broadcasting?

  2. 2

    How to send video (from getUserMedia) to Node.js server?

  3. 3

    Send video stream from iOS7 camera to JavaScript Canvas in web view

  4. 4

    Python: Send an Image to a Flask API to be stored on a server for further use

  5. 5

    Python: Send an Image to a Flask API to be stored on a server for further use

  6. 6

    Possible approaches to stream video from an IP camera to chromecast or raspberry pi

  7. 7

    stream video from pi camera to browser of remote server

  8. 8

    stream video from pi camera to browser of remote server

  9. 9

    Avconv broadcasting video stream

  10. 10

    Send stream from getUserMedia to a nodejs BackEnd and Resend it to google-cloud-platform speech API

  11. 11

    Web API : Read the image send from the app

  12. 12

    Web page that shows a video stream from a local server

  13. 13

    Make video stream Optional in getUserMedia

  14. 14

    How to send a video stream to a server in C#?

  15. 15

    Send video stream/images to a websocket server

  16. 16

    Stream data from Browser to nodejs server using getUserMedia

  17. 17

    Is it possible to use WebRTC to streaming video from Server to Client?

  18. 18

    Is it possible to use the H264 stream from my camera without reencoding to an RTMP endpoint?

  19. 19

    Unable to send video as rtp stream from android

  20. 20

    Is it possible to detect when the camera is on/ready with getUserMedia?

  21. 21

    Should I use web sockets to pull data from server or just a flag and use that flag to send API request for data?

  22. 22

    Video upload using youtube/google API directly from server using node.js?

  23. 23

    Video upload using youtube/google API directly from server using node.js?

  24. 24

    Stream video content through Web API 2

  25. 25

    Stream video content through Web API 2

  26. 26

    JS Get image directly from video stream as data url

  27. 27

    Send webRTC getUserMedia webCam stream over socketio

  28. 28

    Android Camera2 API send stream buffer to native function

  29. 29

    Is it possible to save php values from a form for further use?

HotTag

Archive