PSA: Removal of deprecated Android PeerConnectionFactory constructors

141 views
Skip to first unread message

mag...@webrtc.org

unread,
Apr 27, 2018, 3:28:50 AM4/27/18
to discuss-webrtc
The four old constructors that have been marked deprecated for a long time will be removed in one week.

An Android PeerConnectionFactory should be created through the PeerConnectionFactory.Builder pattern that allows us to introduce new arguments without having to add new constructors.

Migration is straightforward and code that looks like:
new PeerConnectionFactory(options, encoderFactory, decoderFactory);
should be updated to:
PeerConnectionFactory.builder()
    .setOptions(options)
    .setVideoEncoderFactory(encoderFactory)
    .setVideoDecoderFactory(decoderFactory)
    .createPeerConnectionFactory();

Reply all
Reply to author
Forward
0 new messages