如何在Android上播放原生相机声音 [英] how to play native camera sound on Android
本文介绍了如何在Android上播放原生相机声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在相机预览捕捉上播放本机相机快门声音剪辑。我指的是在调用takePicture()时播放的声音片段。我怎么可能?
解决方案
此资源说明如何播放音频文件
http://developer.android.com/intl/de/guide/topics/media/index.html
您可能需要提供自己的快门音效。
I would like to play native camera shutter sound clip on camera preview capture. I'm referring to the sound clip played when takePicture() is called. How could I that? Can someone walk me through the steps?
Thanks!
解决方案
This resource explains how to play audio files
http://developer.android.com/intl/de/guide/topics/media/index.html
You'll probably have to provide your own shutter sound effect.
这篇关于如何在Android上播放原生相机声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文