Come posso trasmettere video dalla mia webcam con HTML5?[Chiuso]
-
14-11-2019 - |
Domanda
Sto cercando di costruire una semplice pagina Web che ha accesso alla mia webcam ed è in grado di trasmettere il video scattato dalla mia webcam.
Sono nuovo per HTML5 e suppongo che sia un compito complesso costruire una pagina del genere da zero.Voglio solo alcuni sviluppatori HTML5 esperti per fornirmi un po 'di partenza, forse alcuni tutorial in questa materia.
Soluzione
Native (not Flash) Webcam and Microphone access in Chrome, demonstrated on YouTube by Paul Kinlan (Google):
And check this out too: Hands on: building an HTML5 photo booth with Chrome's new webcam API
Altri suggerimenti
Not possible in HTML5 yet. You would need to use some sort of browser plugin like flash.
See this question: What's the status of the HTML 5 <video> tag and webcam integration?
Broadcasting in WebRTC is not yet possible according to this Google Developers Video.
What you can do:
Share your screen
Share static stuff (e.g. images, files, etc.) via DataChannels
Connect with group of people or individual and share your streams(audio + video)
Make sure your webcam is behind software that can stream H264 over HTTP (look up at w3schools.com or so) and use the <video>
tag and point it to your PC (open ports if you are behind NAT, common is 8080 but that is depending on your streaming software).
Point the source tag (NOT SRC in the video tag, some browsers hate that) to your external IP and port.