- From: Dominique Hazael-Massieux <dom@w3.org>
- Date: Thu, 22 Mar 2012 13:47:18 +0100
- To: Adam Bergkvist <adam.bergkvist@ericsson.com>
- Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
Le jeudi 22 mars 2012 à 13:15 +0100, Adam Bergkvist a écrit : > One way forward could be to have the constraints dictionary as a member > of the existing MediaStreamOptions dictionary. > > void getUserMedia (MediaStreamOptions? options, > NavigatorUserMediaSuccessCallback? successCb, > optional NavigatorUserMediaErrorCallback? errorCb); > > dictionary MediaStreamOptions { > boolean audio; > boolean video; > MediaStreamConstraints? constraints; > }; > > This actually has some benefits: > - We can add the constraints dictionary member to MediaStreamOptions at > any time without breaking existing code. This sounds good; I guess we need a specific provision that a user agent should not return a MediaStream if it is not able to interpret the constraints object. Dom
Received on Thursday, 22 March 2012 12:47:38 UTC