[Webkit-unassigned] [Bug 176665] New: RTCTransceiver.setDirection does not work
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Sep 10 00:36:36 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=176665
Bug ID: 176665
Summary: RTCTransceiver.setDirection does not work
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: fippo at appear.in
CC: youennf at gmail.com
take the following code:
```
var pc = new RTCPeerConnection();
navigator.mediaDevices.getUserMedia({audio: true})
.then(stream => {
pc.addTrack(stream.getAudioTracks()[0], stream);
pc.getTransceivers()[0].setDirection("sendonly");
console.log("direction is", pc.getTransceivers()[0].direction);
return pc.createOffer();
})
.then(offer => {
console.log(offer.sdp);
})
```
setDirection works, the console log shows "direction is sendonly". However, the offer that is created has a a=sendrecv audio mline.
Similiarly for making a call on https://webrtc.github.io/samples/src/content/peerconnection/pc1/, calling setDirection and then creating a subsequent offer.
--
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/20170910/384e2b1f/attachment-0001.html>
More information about the webkit-unassigned
mailing list