كيف أبث الفيديو من كاميرا الويب الخاصة بي مع HTML5؟[مغلق]

StackOverflow https://stackoverflow.com/questions/9506145

سؤال

أحاول إنشاء صفحة ويب بسيطة يمكنها الوصول إلى كاميرا الويب الخاصة بي وقادرة على بث الفيديو الذي تم التقاطه من كاميرا الويب الخاصة بي.

أنا جديد على 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