[英]How can I get Audio Stream from MediaPlayer in Android
I tried to display audio stream for visualization, and I found MediaPlayer.snoop(short[], int)
to get audio stream playing now on Mediaplayer 我试图显示音频流以进行可视化,我发现MediaPlayer.snoop(short[], int)
现在可以在Mediaplayer上播放音频流
So I did the code: 所以我做了代码:
Class c = MediaPlayer.class;
Method m = c.getDeclaredMethod("snoop", outData.getClass(), Integer.TYPE );
But there is an exception error: No such function in Mediaplayer 但是有一个异常错误:Mediaplayer中没有这样的功能
Couldn't I use the code above or is it impossible to get audio stream? 我不能使用上面的代码或是不可能获得音频流?
Help me!! 帮我!! Thank you. 谢谢。
snoop api尚未公开(即它不暴露在外面使用),所以你不能在你的应用程序中使用它,除非你在Android源代码中插入你的应用程序并编译antire android源代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.