<?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>25360</bug_id>
          
          <creation_ts>2014-04-16 04:15:25 +0000</creation_ts>
          <short_desc>MediaStreamTrack should not be considered as ended just because remote peer stopped sending data.</short_desc>
          <delta_ts>2014-05-08 08:09:58 +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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kiran">kiran.guduru</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>adam.bergkvist</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>103933</commentid>
    <comment_count>0</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-16 04:15:25 +0000</bug_when>
    <thetext>In section 10. Event Summary [1], non-normative section, it was specified for ended event that, ended event can be fired &quot;because the remote peer stopped sending data&quot;.

But there are chances for remote peer to temporarily stop sending data as below.

When the user put remote peer on HOLD, the SDP will be negotiated with sendonly and recvonly in offer and answer respectively [2, 3]. In this scenario, remote peer will temporarily stop sending data until the time it is put to UNHOLD (offer, answer with sendrecv).

So MediaStreamTrack should not be considered as ended just because remote peer stopped sending data.


[1] http://www.w3.org/TR/mediacapture-streams/#event-summary
[2] http://tools.ietf.org/html/draft-nandakumar-rtcweb-sdp-04#page-19
[3] http://tools.ietf.org/html/rfc3264#page-17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103941</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-04-16 08:04:43 +0000</bug_when>
    <thetext>If the other peer temporarily stops sending data then the track should be considered muted. That means that the source isn&apos;t producing any data at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103943</commentid>
    <comment_count>2</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-16 08:16:31 +0000</bug_when>
    <thetext>(In reply to Adam Bergkvist from comment #1)
&gt; If the other peer temporarily stops sending data then the track should be
&gt; considered muted. That means that the source isn&apos;t producing any data at the
&gt; moment.

It seems, perhaps, this comment should be apt for Bug 25360.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103944</commentid>
    <comment_count>3</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-16 08:17:24 +0000</bug_when>
    <thetext>(In reply to Kiran from comment #2)
&gt; (In reply to Adam Bergkvist from comment #1)
&gt; &gt; If the other peer temporarily stops sending data then the track should be
&gt; &gt; considered muted. That means that the source isn&apos;t producing any data at the
&gt; &gt; moment.
&gt; 
&gt; It seems, perhaps, this comment should be apt for Bug 25360.

Sorry for the typo, it should be Bug 25361.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103946</commentid>
    <comment_count>4</comment_count>
    <who name="Kiran">kiran.guduru</who>
    <bug_when>2014-04-16 08:21:40 +0000</bug_when>
    <thetext>This can be solved by modifying the prhase from

&quot;because the remote peer stopped sending data&quot;

to

&quot;because the remote peer permanently stopped sending data&quot;.

(addition of &quot;permanently&quot; can remove other consequences like hold / unhold etc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103957</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-04-16 09:34:31 +0000</bug_when>
    <thetext>Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/3d2d504a7b3be24593749555dd251b5256b9da0c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105407</commentid>
    <comment_count>6</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-05-08 08:09:58 +0000</bug_when>
    <thetext>Fixed in http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>