[Webkit-unassigned] [Bug 215567] New: calling transceiver setCodecPreferences doesn't change the order of codecs in the offer/answer generated by the browser
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 17 07:15:07 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=215567
Bug ID: 215567
Summary: calling transceiver setCodecPreferences doesn't change
the order of codecs in the offer/answer generated by
the browser
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jaya.allamsetty at 8x8.com
CC: youennf at gmail.com
On STP 111, I am trying to change the default order of codecs in the offer/answer SDP by calling setCodecPreferences on the video transceiver.
It doesn't seem to have any effect on the order of the codecs in the subsequent offer/answer generated by the browser.
setCodecPreferences is working on Chrome 85 in Unified plan.
Steps to reproduce:
Modify https://webrtc.github.io/samples/src/content/peerconnection/pc1/ to include the following line before calling offer on pc1.
//localStream.getTracks().forEach(track => pc1.addT(track, localStream));
const audio = pc1.addTransceiver('audio', localStream.getAudioTracks()[0]);
const video = pc1.addTransceiver('video', localStream.getVideoTracks()[0]);
const capabilities = RTCRtpSender.getCapabilities('video').codecs;
capabilities.forEach((codec, idx) => {
if (codec.mimeType === 'video/VP8') {
capabilities.splice(idx, 1);
capabilities.unshift(codec);
}
});
video.setCodecPreferences(capabilities);
--
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/20200817/8e8668bd/attachment.htm>
More information about the webkit-unassigned
mailing list