package org.webrtc; /* loaded from: classes3.dex */ public class VideoEncoderFallback extends WrappedNativeVideoEncoder { private final VideoEncoder fallback; private final VideoEncoder primary; private static native long nativeCreateEncoder(VideoEncoder videoEncoder, VideoEncoder videoEncoder2); public VideoEncoderFallback(VideoEncoder videoEncoder, VideoEncoder videoEncoder2) { this.fallback = videoEncoder; this.primary = videoEncoder2; } @Override // org.webrtc.WrappedNativeVideoEncoder, org.webrtc.VideoEncoder public long createNativeVideoEncoder() { return nativeCreateEncoder(this.fallback, this.primary); } @Override // org.webrtc.WrappedNativeVideoEncoder, org.webrtc.VideoEncoder public boolean isHardwareEncoder() { return this.primary.isHardwareEncoder(); } }