Android Studio8 SoundPool 사용법 초초초 간단한 soundPool 사용법을 적어보겠습니다 . 이번에는 Java 언어로 만들겠습니다 . Layout 이제 자신이 원하는 효과음을 넣어야겠죠 ? res에 new directory 를 raw 로 만들어주세요 거기에 원하는 효과음을 넣어주시면 됩니다. MainActivity public class MainActivity extends AppCompatActivity { SoundPool mSoundPool; int mSoundId; Button button ; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ma.. 2022. 1. 20. [Android/Kotlin ]Exoplayer 동적 playlist 만들기 dependencies 추가 dependencies { //exoPlayer implementation "com.google.android.exoplayer:exoplayer-core:2.14.1" implementation "com.google.android.exoplayer:exoplayer-ui:2.14.1" implementation "com.google.android.exoplayer:exoplayer-hls:2.14.1" } ExoPlayer 공식홈페이지 참조하여서 봐주세요~ https://exoplayer.dev/playlists.html Playlists - ExoPlayer exoplayer.dev 이해가 안가는 분들은 Exoplayer 사용하기 보고와 주세요 . MainActivity .. 2022. 1. 10. 이전 1 2 다음