mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 22:30:40 +01:00

Support Injectable Audio Codecs from the Java SDK. The PeerConnectionFactory.Builder defaults to BuiltinAudio(Encoder|Decoder)Factory, but other implementations are permitted via the Audio(Encoder|Decoder)FactoryFactory interface. Bug: webrtc:9916 Change-Id: I61ad4a6e57666bc1be79daf5f40b129e0eacad84 Reviewed-on: https://webrtc-review.googlesource.com/c/107711 Commit-Queue: Lennart Kolmodin <kolmodin@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25478}
23 lines
808 B
Java
23 lines
808 B
Java
/*
|
|
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
package org.webrtc;
|
|
|
|
/**
|
|
* Creates a native {@code webrtc::AudioDecoderFactory} with the builtin audio decoders.
|
|
*/
|
|
public class BuiltinAudioDecoderFactoryFactory implements AudioDecoderFactoryFactory {
|
|
@Override
|
|
public long createNativeAudioDecoderFactory() {
|
|
return nativeCreateBuiltinAudioDecoderFactory();
|
|
}
|
|
|
|
private static native long nativeCreateBuiltinAudioDecoderFactory();
|
|
}
|