【发布时间】:2012-08-17 08:01:25
【问题描述】:
当我尝试使用 AMR 文件格式播放曲目时。它会发出警告
权限失败:android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK
来自 libOpenSLES 的错误
AudioSfDecoder::onPrepare: 找不到支持的音轨。
我尝试在清单文件中设置权限。
<!-- Allows an application to use any media decoder when decoding for playback
@hide -->
<permission android:name="android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK"
android:protectionLevel="signatureOrSystem"
android:label="@string/permlab_anyCodecForPlayback"
android:description="@string/permdesc_anyCodecForPlayback" />
但仍然抛出同样的错误。
我是否正确设置了权限? 谁能帮帮我,我错过了什么。
【问题讨论】:
-
给我你的代码,然后我可以帮助你
-
您在设备或模拟器中测试应用程序吗?那么版本呢?
标签: android android-ndk amr