Android: Remove use of deprecated functions related to legacy video codecs
Bug: webrtc:7925 Change-Id: I6728a0ef931ae93ba095965daeeb97925a31b245 Reviewed-on: https://webrtc-review.googlesource.com/88570 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23980}
This commit is contained in:
committed by
Commit Bot
parent
b4dfdf574d
commit
5a3d87d122
@ -331,13 +331,10 @@ public class PeerConnectionClient {
|
||||
|
||||
final String fieldTrials = getFieldTrials(peerConnectionParameters);
|
||||
executor.execute(() -> {
|
||||
Log.d(TAG,
|
||||
"Initialize WebRTC. Field trials: " + fieldTrials + " Enable video HW acceleration: "
|
||||
+ peerConnectionParameters.videoCodecHwAcceleration);
|
||||
Log.d(TAG, "Initialize WebRTC. Field trials: " + fieldTrials);
|
||||
PeerConnectionFactory.initialize(
|
||||
PeerConnectionFactory.InitializationOptions.builder(appContext)
|
||||
.setFieldTrials(fieldTrials)
|
||||
.setEnableVideoHwAcceleration(peerConnectionParameters.videoCodecHwAcceleration)
|
||||
.setEnableInternalTracer(true)
|
||||
.createInitializationOptions());
|
||||
});
|
||||
@ -637,11 +634,6 @@ public class PeerConnectionClient {
|
||||
|
||||
queuedRemoteCandidates = new ArrayList<>();
|
||||
|
||||
if (isVideoCallEnabled()) {
|
||||
factory.setVideoHwAccelerationOptions(
|
||||
rootEglBase.getEglBaseContext(), rootEglBase.getEglBaseContext());
|
||||
}
|
||||
|
||||
PeerConnection.RTCConfiguration rtcConfig =
|
||||
new PeerConnection.RTCConfiguration(signalingParameters.iceServers);
|
||||
// TCP candidates are only useful when connecting to a server that supports
|
||||
|
||||
Reference in New Issue
Block a user