From 6511c9755c3a3360ba869772600c7aae048a7ffc Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 30 Mar 2011 11:15:27 -0700 Subject: Stagefright DataSources now expose the underlying content mime type. Use that mime type to determine if we should do upfront buffering at the start of playback and don't for audio streams to ensure playback starts fairly instantly. Change-Id: If21e36d1b024f0e5c723911bceadaa2e0307ab42 related-to-bug: 4090916 --- media/libstagefright/DataSource.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'media/libstagefright/DataSource.cpp') diff --git a/media/libstagefright/DataSource.cpp b/media/libstagefright/DataSource.cpp index b5c51f4..7c2096e 100644 --- a/media/libstagefright/DataSource.cpp +++ b/media/libstagefright/DataSource.cpp @@ -144,4 +144,8 @@ sp DataSource::CreateFromURI( return source; } +String8 DataSource::getMIMEType() const { + return String8("application/octet-stream"); +} + } // namespace android -- cgit v1.1