W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2016

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

From: Martin Thomson via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Oct 2016 03:37:30 +0000
To: public-media-capture@w3.org
Message-ID: <pull_request.opened-88607169-1476070648-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:37 UTC