문제

웹캠에 액세스 할 수있는 간단한 웹 페이지를 작성하고 내 웹캠에서 가져온 비디오를 브로드 캐스트 할 수 있습니다.

HTML5의 새로운 기능이며 처음부터 이러한 웹 페이지를 구축하는 복잡한 작업이라고 생각합니다.나는 경험이 많은 HTML5 개발자가 나에게 시작 지점을 제공 할 것을 원한다. 아마도이 문제에있는 자습서를 제공하기를 원한다.

도움이 되었습니까?

해결책

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

다른 팁

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:

  1. Share your screen

  2. Share static stuff (e.g. images, files, etc.) via DataChannels

  3. 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top