[mediacapture-screen-share] Pull Request: Clarifying constraints and their application

martinthomson has just submitted a new pull request for 
https://github.com/w3c/mediacapture-screen-share:

== Clarifying constraints and their application ==
This is a fairly large change, intended to better address a bunch of 
open issues around the use of constraints.

The algorithm change is actually simple, despite what shows in the 
diff here: the constraints are passed to the getUserMedia() algorithm 
but `audio` and `video` are replaced with a simple Boolean.  If a 
MediaStreamTrackConstraints value was replaced, then applyConstraints 
is called on the resulting track.  The only downside here being that 
you potentially get an overconstrained (and therefore empty) track, 
with no event (since that happens before you have the track).

Also here, I made the argument optional and default to `{video:true}`,
 since that's the most sensible thing to want to do.

@jan-ivar, @stefhak, do you think that MediaStreamTrack should have an
 overconstrained attribute?

Attention: @ShijunS who asked for this.

See https://github.com/w3c/mediacapture-screen-share/pull/46

Received on Monday, 10 October 2016 03:37:37 UTC