How to play native camera sound on Android

后端 未结 6 1964
星月不相逢
星月不相逢 2020-12-29 21:29

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

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 21:36

    This resource explains how to play audio files: https://developer.android.com/guide/topics/media/index.html

    You'll probably have to provide your own shutter sound effect.

提交回复
热议问题