V
V
Vyacheslav Saratovsky2014-09-17 11:54:16
Regular Expressions
Vyacheslav Saratovsky, 2014-09-17 11:54:16

How to find out the resolution of the user's webcam?

I'm doing something like a video chat. You need to know the permission of the user's webcam. In chrome, I solved the issue by getting the size of the video tag with the stream from the camera, but this does not work in muzzle. What to do with mozilla?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rsa97, 2016-09-09
@nikolaas

If the string can start and end with a hyphen:
If it can't:
/^(?:[а-яё]+-?)*[а-яё]+$/i

O
Oleg, 2016-09-09
@politon

Something like this https://jsfiddle.net/joomla/gjt7s2t0/1/

V
Vasiliy Os, 2014-09-25
@super-developer

I think we should try to draw the video in the canvas , and then sort through the raw data to determine the "empty" areas?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question