[Webkit-unassigned] [Bug 191698] New: Safari throws error when changing transceiver.direction

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 15 11:05:10 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=191698

            Bug ID: 191698
           Summary: Safari throws error when changing
                    transceiver.direction
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ibc at aliax.net
                CC: youennf at gmail.com

Created attachment 354958

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

Script that reproduces the issue. Just run it in Safari 12.1 console with "Unified-Plan" enabled.

* Latest Safari Tech Preview 12.1 (15-Nov-2018)
* "WebRTC Unified-Plan" enabled in menu "Develop / Experimental Features".

Scenario:

- Add a mic transceiver with "sendonly" direction. Create offer and apply it.

- Remove the mic track using pc.removeTrack(transceiver.sender). Create offer and apply it.

- Add again the mic track using transceiver.replaceTrack(track) and changing transceiver.direction = "sendonly".

It throws "InvalidStateError: The object is in an invalid state."

This should not happen. The app should be able to change transceiver.direction at any time. And in this case, the app does need to set transceiver.direction="sendonly" since it's not supposed to be automatically changed after replacing the sending track.

This works in Chrome and Firefox.

-- 
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/20181115/023832ea/attachment-0001.html>


More information about the webkit-unassigned mailing list