android.media.MediaExtractor.getSampleCryptoInfo()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中android.media.MediaExtractor.getSampleCryptoInfo()方法的一些代码示例,展示了MediaExtractor.getSampleCryptoInfo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MediaExtractor.getSampleCryptoInfo()方法的具体详情如下:
包路径:android.media.MediaExtractor
类名称:MediaExtractor
方法名:getSampleCryptoInfo

MediaExtractor.getSampleCryptoInfo介绍

暂无

代码示例

代码示例来源:origin: bitmovin/bitcodin-android-demo

/**
 * Equivalent to {@link MediaExtractor#getSampleCryptoInfo(android.media.MediaCodec.CryptoInfo)}.
 *
 * @param extractor The extractor from which to retrieve the crypto information.
 */
@TargetApi(16)
public void setFromExtractorV16(MediaExtractor extractor) {
 extractor.getSampleCryptoInfo(frameworkCryptoInfo);
 numSubSamples = frameworkCryptoInfo.numSubSamples;
 numBytesOfClearData = frameworkCryptoInfo.numBytesOfClearData;
 numBytesOfEncryptedData = frameworkCryptoInfo.numBytesOfEncryptedData;
 key = frameworkCryptoInfo.key;
 iv = frameworkCryptoInfo.iv;
 mode = frameworkCryptoInfo.mode;
}

代码示例来源:origin: googlesamples/android-MediaRecorder

mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags);
} else {
  extractor.getSampleCryptoInfo(sCryptoInfo);
  mDecoder.queueSecureInputBuffer(index, 0, sCryptoInfo, presentationTimeUs, flags);

代码示例来源:origin: sealtalk/sealtalk-android

mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags);
} else {
  extractor.getSampleCryptoInfo(sCryptoInfo);
  mDecoder.queueSecureInputBuffer(index, 0, sCryptoInfo, presentationTimeUs, flags);

代码示例来源:origin: googlesamples/android-BasicMediaDecoder

mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags);
} else {
  extractor.getSampleCryptoInfo(sCryptoInfo);
  mDecoder.queueSecureInputBuffer(index, 0, sCryptoInfo, presentationTimeUs, flags);

相关文章