Re: [mediacapture-main] What does "getSettings" return?

Replying in reverse order:
I was using getSettings(width, height) as a shorthand for 
getSettings().then(results) where results.width has value and 
results.height has value.

Deterministic: If the constraint is "width.max = 640, height.max = 
400", and the frame that arrives is 640x480, our current code will 
crop it to 640x400. If it's 640x320, we will deliver 640x320.
This will probably only be a real issue with sources that can vary in 
shape and size such as capture windows, but the code path that does 
the adaptation is the same for both cases.

element.videoWidth / .videoHeight on Chrome returns 0x0 before the 
first frame arrives; is that also the behavior on Firefox?


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/386#issuecomment-241800628
 using your GitHub account

Received on Tuesday, 23 August 2016 16:57:58 UTC