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 --- include/media/stagefright/DataSource.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/media/stagefright/DataSource.h') diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h index d30e908..6b6fcdf 100644 --- a/include/media/stagefright/DataSource.h +++ b/include/media/stagefright/DataSource.h @@ -84,6 +84,8 @@ public: return String8(); } + virtual String8 getMIMEType() const; + protected: virtual ~DataSource() {} -- cgit v1.1