PSA: Java PeerConnectionFactory.createPeerConnection with constraints is deprecated

258 views
Skip to first unread message

Sami Kalliomäki

unread,
Jan 16, 2018, 7:25:04 AM1/16/18
to discuss-webrtc
PeerConnectionFactory.createPeerConnection with constraints is deprecated. This is done for consistency with the C++ API.

Please migrate to supplying all configuration parameters through RTCConfiguration object. Following new parameters have been added for this purpose:

    public boolean disableIpv6;
    public boolean enableDscp;
    public boolean enableCpuOveruseDetection;
    public boolean enableRtpDataChannel;
    public boolean suspendBelowMinBitrate;
    public Integer screencastMinBitrate;
    public Boolean combinedAudioVideoBwe;
    public Boolean enableDtlsSrtp;

Please note that you also have to set these values in PeerConnection.setConfiguration call.

The old signature will be removed after a few weeks. As always, feel free to comment any questions or concerns in this thread.

Regards,
Sami Kalliomäki

Harald Alvestrand

unread,
Jan 16, 2018, 7:56:33 AM1/16/18
to WebRTC-discuss
Note: This has no effect on the Javascript API (mapping from the old constraints to the new parameters is done in other parts of the code), but the constraints in the Javascript API are also slated for removal, since they're not present in the standard.

Harald


--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAD-mH0FWgESy1UfuUYnuwCGZ85c1gPhOhx76m%3D2Nin6H1fMW9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages