简体   繁体   English

Android中AudioPresentation类有什么用?

[英]What is the use of AudioPresentation class in Android?

Recently i found that MediaExtractor class has a method called getAudioPresentations What does this method is for?最近发现MediaExtractor类有一个方法叫做getAudioPresentations这个方法是干什么用的?

The AudioPresentation class encapsulates the information that describes an audio presentation which is available in next generation audio content. AudioPresentation 类封装了描述在下一代音频内容中可用的音频演示的信息。

I'm not able to understand this definition.我无法理解这个定义。 Can someone please help me with it有人可以帮我吗

A list of available audio presentations in a media source can be queried using MediaExtractor.getAudioPresentations(int) .可以使用 MediaExtractor.getAudioPresentations(int) 查询媒体源中可用音频演示的列表。 This list can be presented to a user for selection.该列表可以呈现给用户以供选择。 Also Applications that parse media streams and extract presentation information on their own can create instances of AudioPresentation by using AudioPresentation.Builder class.此外,解析媒体流并自行提取演示信息的应用程序可以使用 AudioPresentation.Builder 类创建 AudioPresentation 的实例。 This AudioPresentation class is helpful specially in Audio/Video editing functionality.这个 AudioPresentation 类在音频/视频编辑功能方面特别有用。

For further information about the class, please refer https://android.googlesource.com/platform/frameworks/base/+/master/media/java/android/media/AudioPresentation.java有关该类的更多信息,请参阅https://android.googlesource.com/platform/frameworks/base/+/master/media/java/android/media/AudioPresentation.java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM