android AsyncPlayer 后台播放音乐

AsyncPlayer asyncPlayer = new AsyncPlayer(TAG);
        asyncPlayer.play(
                context,
                Uri.parse("android.resource://" + context.getPackageName()
                        + "/" + R.raw.scream), true, AudioManager.STREAM_MUSIC);

你可能感兴趣的:(android,音乐)