<?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>25752</bug_id>
          
          <creation_ts>2014-05-16 22:54:01 +0000</creation_ts>
          <short_desc>sourceType is redundant as constraint</short_desc>
          <delta_ts>2014-08-22 08:56:16 +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>All</rep_platform>
          <op_sys>All</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>25769</blocked>
    
    <blocked>25775</blocked>
    
    <blocked>25778</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shijun Sun">shijuns</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>adam.bergkvist</cc>
    
    <cc>harald</cc>
    
    <cc>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106231</commentid>
    <comment_count>0</comment_count>
    <who name="Shijun Sun">shijuns</who>
    <bug_when>2014-05-16 22:54:01 +0000</bug_when>
    <thetext>In the MediaStreamConstraints dictionary, the &quot;video&quot; and &quot;audio&quot; properties already indicate whether the source should be a camera or microphone for the specific MediaTrackConstraints. Having an &quot;sourceType&quot; doesn&apos;t give the UA more meaningful instruction, meanwhile, can introduce unnecessary conflict, e.g. by setting the sourceType to &quot;camera&quot; on the &quot;audio&quot; property.

Also, typically we should not expect the sourceType to change while applying new constraints on an existing MediaStreamTrack.  MediaStreamTrack.kind indicates the sourceType already.  There is no clear value keeping the sourceType as constraints in this case either.

sourceType &quot;none&quot; is covered by the MediaStreamTrack.radyState, again redundant.

Suggest removing sourceType from the constraints list, and mapping the concept to other attributes defined in the spec already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108494</commentid>
    <comment_count>1</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-06-30 13:58:46 +0000</bug_when>
    <thetext>This property was added with the idea that it could be extended - with, for instance, &quot;file&quot;, &quot;screencapture&quot; or others.

At the moment, it is not useful. Suggest removing it until we have a real use case for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108724</commentid>
    <comment_count>2</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-07-04 11:52:49 +0000</bug_when>
    <thetext>Question sent on the mailing list about removing it on July 4, 2014</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110456</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-08-22 08:56:16 +0000</bug_when>
    <thetext>Removed sourceType (and SourceTypeEnum)

Proposed fix: https://github.com/w3c/mediacapture-main/commit/71f3030cdd686f84bd6decb895d2196c13092bcd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>