📜  播放声音 android studio kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:33.640000             🧑  作者: Mango

代码示例1
//make a audio file in the res/raw directory
mediaPlayer = MediaPlayer.create(this, R.raw.FILE_NAME)
mediaPlayer?.start()