/**
* Get a list of supported android codec mimes.
*/
+ @SuppressWarnings("deprecation")
@CalledByNative
private static CodecInfo[] getCodecsInfo() {
// Return the first (highest-priority) codec for each MIME type.
return codecInfos.toArray(new CodecInfo[codecInfos.size()]);
}
+ @SuppressWarnings("deprecation")
private static String getDecoderNameForMime(String mime) {
int count = MediaCodecList.getCodecCount();
for (int i = 0; i < count; ++i) {
}
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private boolean start() {
try {
return mOutputBuffers != null ? mOutputBuffers[0].capacity() : -1;
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private boolean getOutputBuffers() {
try {
}
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private DequeueOutputResult dequeueOutputBuffer(long timeoutUs) {
MediaCodec.BufferInfo info = new MediaCodec.BufferInfo();
return mAudioTrack.getPlaybackHeadPosition();
}
+ @SuppressWarnings("deprecation")
@CalledByNative
private void setVolume(double volume) {
if (mAudioTrack != null) {