Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当视频放在 res/raw 文件夹中时,如何在 android 应用程序中播放视频?
使用 MediaPlayer,是的,您将从 res/raw 文件夹中播放
MediaPlayer mp = MediaPlayer.create(context, R.raw.sound_file_1); mp.start();
音视频播放