<?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>22264</bug_id>
          
          <creation_ts>2013-06-04 16:50:36 +0000</creation_ts>
          <short_desc>MediaStream.ended set to true on creation</short_desc>
          <delta_ts>2013-10-17 11:32:21 +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>
          <dependson>21618</dependson>
          
          <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>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88633</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-06-04 16:50:36 +0000</bug_when>
    <thetext>The description of the ended attribute for MediaStream states that:
&quot;if [the MediaStream object] is being created using the MediaStream() constructor whose arguments are lists of MediaStreamTrack objects that are all ended, [...] the MediaStream object MUST be created with its ended attribute set to true.&quot;

* this should (also?) appear in the constructor algorithm at the starts of the MediaStream section
* the conformance requirement should presumably also apply in the case where the argument is a MediaStream object whose tracks are all ended</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92813</commentid>
    <comment_count>1</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-09-02 09:44:43 +0000</bug_when>
    <thetext>(this depends on our general approach to ended state for mediastream)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94229</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2013-10-03 14:28:19 +0000</bug_when>
    <thetext>With the change from ended to inactive (for MediaStream) I replaced the text in the ended (now inactive) attribute description that dictated the behavior for the constructor with a more general text:

&quot;When a MediaStream object is created, its inactive attribute MUST be set to false, unless stated otherwise (for example by the MediaStream() constructor algorithm).&quot;

I&apos;ve added text in the constructor algorithm to initialize the inactive attribute accordingly. Currently the constructor disregards from ended tracks used as input, but that&apos;s perhaps a separate discussion.

Proposed change:
https://github.com/fluffy/webrtc-w3c/commit/9ff8a5d160e3319825652ed8d135df6921817dd6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94889</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2013-10-17 11:32:21 +0000</bug_when>
    <thetext>Fixed in Editor&apos;s draft v20131017</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>