<?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>22593</bug_id>
          
          <creation_ts>2013-07-08 15:42:42 +0000</creation_ts>
          <short_desc>Capabilities are buggy</short_desc>
          <delta_ts>2014-04-03 14:25:02 +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>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</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>harald</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>90422</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-07-08 15:42:42 +0000</bug_when>
    <thetext>I&apos;m struggling to make sense of the &quot;Source capabilities&quot; section in Media Capture and Streams.

First, trivially, the typedef for CapabilityList should presumably be sequence&lt;DOMString&gt; rather then &quot;sequence&quot; (which doesn&apos;t make sense).

In practice, though, it&apos;s not clear why that a sequence of DOMString is used generically through this typedef rather than more specific types where useful (e.g. SourceTypeEnum for sourceType).

I don&apos;t understand either how a given source could have a sequence of sourceId or a sequence of facingMode rather than a single value; I&apos;m not sure whether a sequence of sourceType make sense either — that probably depends whether a camera that can record sound should appear both as a camera and as a microphone (the spec isn&apos;t clear on that).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100957</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-02-20 13:27:53 +0000</bug_when>
    <thetext>Dom,

are your concerns addressed in the updated draft?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100964</commentid>
    <comment_count>2</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2014-02-20 16:23:16 +0000</bug_when>
    <thetext>Most of my concerns are addressed, but the following questions remain open from my initial bug report:

* facingMode is described as a PropertyValueSet (i.e. takes a list of values); I&apos;m not clear how a camera can be facing different directions at once; this may make sense, but if it does, it should be more clearly explained the description of the facingMode constraint

* conversely, sourceType is described as a single value (&quot;none&quot;, &quot;camera&quot; or &quot;microphone&quot;); but it feels like some devices might have both a camera and mike, so I don&apos;t why the type of sourceType is not PropertyValueSet; again, this might make sense, but additional explanation in the definition would be needed

(I haven&apos;t dived into the more general updated model of constraints/capabilities/settings yet; it still makes me feel dizzy though…)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103316</commentid>
    <comment_count>3</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-04-03 07:57:34 +0000</bug_when>
    <thetext>A source has only a single source type.

A device with both camera and microphone will be described as two sources with the same groupId - that&apos;s why we added groupId.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103321</commentid>
    <comment_count>4</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2014-04-03 09:14:32 +0000</bug_when>
    <thetext>Makes sense; so that leaves the question of the meaningfulness of having an array of values for facingMode in capabilities.

In particular, the example in 11.3 has:
   facingMode&quot;: [&quot;user&quot;, &quot;environment&quot;]
which doesn&apos;t make sense to me; it may be that there is some (obsolete?) ambiguity about whether capabilities are at the UA level (which the text in 11.3 seems to imply) or at the source level.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103356</commentid>
    <comment_count>5</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-04-03 14:25:02 +0000</bug_when>
    <thetext>This bug has been resolved through discussion.

Remaining issue - of whether facingMode can ever be multivalued in Capabilities - is filed as a separate bug:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25247</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>