[Webkit-unassigned] [Bug 176281] New: track.onended isn't called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 2 13:10:23 PDT 2017


            Bug ID: 176281
           Summary: track.onended isn't called
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ben.browitt at gmail.com
                CC: youennf at gmail.com

Created attachment 319733

  --> https://bugs.webkit.org/attachment.cgi?id=319733&action=review


There is no way to detect when a remote peer removes a track in a WebRTC call.

I've tried track.onended, track.onmute, stream.onremovetrack:
pc.ontrack = function(e) {
  var track = e.track;
  var stream = e.streams[0];
  // try to detect when a remote track is removed
  track.onended = function() {console.log('onended')};
  track.onmute = function() {console.log('onmute')};
  stream.onremovetrack = function() {console.log('onremovetrack')};

In the attached track.html example you should see "video ended" and "audio ended" in Chrome and Firefox but not in Safari 11.1 Release 38.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170902/9426a07a/attachment.html>

More information about the webkit-unassigned mailing list