[Webkit-unassigned] [Bug 180342] New: replaceTrack triggers negotiationneeded
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Dec 3 19:48:25 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180342
Bug ID: 180342
Summary: replaceTrack triggers negotiationneeded
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: andrew at tokbox.com
CC: youennf at gmail.com
1. Go to basic peer connection demo from webrtc samples: https://webrtc.github.io/samples/src/content/peerconnection/pc1/
2. Run this in the console:
(async () => {
pc1.addEventListener('negotiationneeded', evt => console.log('pc1 negotiationneeded', evt));
await new Promise(resolve => setTimeout(resolve, 250));
const initialVideoTrack = pc1.getSenders()[1].track;
await pc1.getSenders()[1].replaceTrack(initialVideoTrack);
console.log('done');
})().catch(err => console.error(err));
Result: 'pc1 negotiationneeded [...]' is logged
Expected: 'pc1 negotiationneeded [...]' is not logged (and no visible changes really)
I could be wrong about this being a bug, but Firefox does not do this, and in my understanding the whole point of replaceTrack is that you can just start pulling frames from a new source and nothing much needs to happen.
Safari 11 stable is also affected. Tested on (non-high) Sierra.
--
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/20171204/234e23d5/attachment-0001.html>
More information about the webkit-unassigned
mailing list