<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22209</bug_id>
          
          <creation_ts>2013-05-30 11:45:16 +0000</creation_ts>
          <short_desc>&quot;each key MUST be a valid registered constraint name in the IANA-hosted RTCWeb Media Constraints registry&quot;</short_desc>
          <delta_ts>2014-05-08 09:02:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>Media Capture and Streams</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Hazael-Massieux">dom</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>adam.bergkvist</cc>
    
    <cc>anssi.kostiainen</cc>
    
    <cc>harald</cc>
    
    <cc>mandyam</cc>
    
    <cc>public-media-capture</cc>
    
    <cc>stefan.lk.hakansson</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88442</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-05-30 11:45:16 +0000</bug_when>
    <thetext>The description of the MediaTrackConstraintSet and MediaTrackConstraint uses the word MUST to describe the expected content of these values; given that this are values provided by the developer rather than the user agent, it doesn&apos;t make much sense, esp. as the algorithm to handle constraints takes care of unknown values.

I would rephrase this as &quot;A MediaTrackConstraintSet is a dictionary containing one or more key-value pairs, where each key is expected to be a valid registered constraint name in the IANA-hosted RTCWeb Media Constraints registry&quot; for instance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89477</commentid>
    <comment_count>1</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-06-18 14:03:13 +0000</bug_when>
    <thetext>MUST is inappropriate if we&apos;re to allow proprietary constraints and constraints-in-development.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94381</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2013-10-07 07:44:20 +0000</bug_when>
    <thetext>Let&apos;s fix this, if it&apos;s still valid, when the new Constrainable interface [1] has been added to the spec.

[1] http://lists.w3.org/Archives/Public/public-media-capture/2013Oct/0027.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95794</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2013-11-05 08:51:05 +0000</bug_when>
    <thetext>Keeping the &quot;MUST&quot;-wording for Capabilites since these are provided by the UA.

Proposed change:
https://github.com/fluffy/webrtc-w3c/commit/25b2652dc19897f12076127df307d51fdfc35988</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95811</commentid>
    <comment_count>4</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-11-05 16:52:07 +0000</bug_when>
    <thetext>I&apos;m not sure we can keep the MUST wording for capabilities either, since that would preclude vendor-specific or pre-registration constraints from showing up.

I don&apos;t think we want to encourage hiding of vendor capabilities.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95815</commentid>
    <comment_count>5</comment_count>
    <who name="Giri Mandyam">mandyam</who>
    <bug_when>2013-11-05 17:20:48 +0000</bug_when>
    <thetext>We discussed vendor-specific constraints during the F2F at TPAC 2012 (http://lists.w3.org/Archives/Public/public-media-capture/2012Dec/att-0196/minutes-2012-10-30.html).  

I believe what reflected consensus was that vendor-specific constraints be added to the IANA registry, which would allow such constraints to undergo expert review as per RFC 5226.  We can reconfirm this at the next F2F however.

On a related note, I do believe the spec is unclear as to what the implementation should do when a valid IANA-registered vendor-specific constraint is provided to MediaStreamTrack.applyConstraints() that the implementation does not recognize or support.  I assume an exception can be raised, but I did not find specific guidance in the latest working draft.  The constrainable interface proposal also defines an error callback on applyConstraints().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103332</commentid>
    <comment_count>6</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2014-04-03 12:31:06 +0000</bug_when>
    <thetext>Assuming the new WebIDL-based approach gets adopted, I think that bug can be closed since dictionaries take care of this issue implicitly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103348</commentid>
    <comment_count>7</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-04-03 13:17:42 +0000</bug_when>
    <thetext>(In reply to Dominique Hazael-Massieux from comment #6)
&gt; Assuming the new WebIDL-based approach gets adopted, I think that bug can be
&gt; closed since dictionaries take care of this issue implicitly.

I hope it will get adopted - but let&apos;s give it a few more days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105420</commentid>
    <comment_count>8</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-05-08 09:02:27 +0000</bug_when>
    <thetext>Fixed in http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>