gpt4 book ai didi

android - 可以获取其他app的audioStream吗

转载 作者:行者123 更新时间:2023-11-30 04:54:08 25 4
gpt4 key购买 nike

我想为我的蓝牙主导项目分析我的音乐播放器应用程序的音频频谱。

但据我对这篇文章的理解:

https://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html#REMOTE_SUBMIX

第三方应用无法捕获其他应用的音频流。

有人知道解决办法吗?

最佳答案

从 Android Q 开始,这可以通过 AudioPlaybackCapture API 实现(在允许的应用中):

This API gives apps the ability to copy the audio being played by other apps. This feature is the analog of screen capture, but for audio. The primary use case is for streaming apps that want to capture the audio being played by games.

Documentation

关于android - 可以获取其他app的audioStream吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59510560/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com