summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/DataSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-26 16:20:10 -0800
committerAndreas Huber <andih@google.com>2010-01-26 16:20:10 -0800
commit66b0a35c9a4136a84c3f73b1b25fcb5220138b95 (patch)
tree8a452e8ef792b6a678f82bdf2fb3a98bd09f1ba2 /include/media/stagefright/DataSource.h
parente7dc360f6fcb4d5348e72ba57e936254216ae399 (diff)
downloadframeworks_av-66b0a35c9a4136a84c3f73b1b25fcb5220138b95.zip
frameworks_av-66b0a35c9a4136a84c3f73b1b25fcb5220138b95.tar.gz
frameworks_av-66b0a35c9a4136a84c3f73b1b25fcb5220138b95.tar.bz2
Better support for HTTP streaming media content, fixes to the way HTTPDataSource streams the data, prefetcher implementation.
related-to-bug: 2295438
Diffstat (limited to 'include/media/stagefright/DataSource.h')
-rw-r--r--include/media/stagefright/DataSource.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h
index f88666a..0c0ace0 100644
--- a/include/media/stagefright/DataSource.h
+++ b/include/media/stagefright/DataSource.h
@@ -31,6 +31,10 @@ class String8;
class DataSource : public RefBase {
public:
+ enum Flags {
+ kWantsPrefetching = 1,
+ };
+
static sp<DataSource> CreateFromURI(const char *uri);
DataSource() {}
@@ -45,6 +49,10 @@ public:
// May return ERROR_UNSUPPORTED.
virtual status_t getSize(off_t *size);
+ virtual uint32_t flags() {
+ return 0;
+ }
+
////////////////////////////////////////////////////////////////////////////
bool sniff(String8 *mimeType, float *confidence);