简体   繁体   English

录制手机上播放的音频

[英]Record Audio playing on the phone

What is the code to record a song playing on the phone?录制在手机上播放的歌曲的代码是什么? When i use the default code given on the android developers website and run it it crashes when i try to record a song playing on the phone,though it works fine when i try to record what i speak.Or is not possible not play a song and record it at the same time on android.当我使用 android 开发人员网站上给出的默认代码并运行它时,当我尝试录制手机上播放的歌曲时它会崩溃,尽管当我尝试录制我所说的内容时它工作正常。或者不可能不播放歌曲同时记录在android上。

In this site you will see all formats that Android supports;在此站点中,您将看到 Android 支持的所有格式;
I don't think it is possible to play a song, and record it if you use the standard Android library.如果您使用标准的 Android 库,我认为无法播放歌曲并进行录制。 You need a specific library.您需要一个特定的库。

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

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