Merge "API Extension: Support for optionally specifying a map of extra request headers when specifying the uri of media data to be played."

This commit is contained in:
Andreas Huber 2010-01-28 12:56:17 -08:00 committed by Android (Google) Code Review
commit 7843ced36a

View File

@ -197,7 +197,7 @@ void CameraService::decUsers() {
static sp<MediaPlayer> newMediaPlayer(const char *file)
{
sp<MediaPlayer> mp = new MediaPlayer();
if (mp->setDataSource(file) == NO_ERROR) {
if (mp->setDataSource(file, NULL /* headers */) == NO_ERROR) {
mp->setAudioStreamType(AudioSystem::ENFORCED_AUDIBLE);
mp->prepare();
} else {