diff options
author | Andreas Huber <andih@google.com> | 2010-06-10 11:17:50 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-06-10 15:16:57 -0700 |
commit | 0a5baa9b411fe086013d2a5e9126ed63fbad046c (patch) | |
tree | d2f568256c27d816aa5cac3ef365ebe460536a3a /media/libstagefright/include/AwesomePlayer.h | |
parent | 28b6844dec4297b16777fd45fd77ff33aa495de2 (diff) | |
download | frameworks_av-0a5baa9b411fe086013d2a5e9126ed63fbad046c.zip frameworks_av-0a5baa9b411fe086013d2a5e9126ed63fbad046c.tar.gz frameworks_av-0a5baa9b411fe086013d2a5e9126ed63fbad046c.tar.bz2 |
Switch stagefright's approach to prefetching to the new model. The java MediaPlayer is now notified about rebuffering start/end via info messages.
Change-Id: If8185ba329ce8b6663b1ad39a4efb0ad3be81df2
Diffstat (limited to 'media/libstagefright/include/AwesomePlayer.h')
-rw-r--r-- | media/libstagefright/include/AwesomePlayer.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/media/libstagefright/include/AwesomePlayer.h b/media/libstagefright/include/AwesomePlayer.h index 182aa06..2a9f21b 100644 --- a/media/libstagefright/include/AwesomePlayer.h +++ b/media/libstagefright/include/AwesomePlayer.h @@ -18,11 +18,11 @@ #define AWESOME_PLAYER_H_ +#include "NuHTTPDataSource.h" #include "TimedEventQueue.h" #include <media/MediaPlayerInterface.h> #include <media/stagefright/DataSource.h> -#include <media/stagefright/HTTPDataSource.h> #include <media/stagefright/OMXClient.h> #include <utils/threads.h> @@ -33,8 +33,8 @@ struct DataSource; struct MediaBuffer; struct MediaExtractor; struct MediaSource; -struct Prefetcher; struct TimeSource; +struct NuCachedSource2; struct ALooper; struct ARTSPController; @@ -101,6 +101,7 @@ private: PREPARED = 16, AT_EOS = 32, PREPARE_CANCELLED = 64, + CACHE_UNDERRUN = 128, }; mutable Mutex mLock; @@ -169,8 +170,8 @@ private: MediaBuffer *mLastVideoBuffer; MediaBuffer *mVideoBuffer; - sp<Prefetcher> mPrefetcher; - sp<HTTPDataSource> mConnectingDataSource; + sp<NuHTTPDataSource> mConnectingDataSource; + sp<NuCachedSource2> mCachedSource; sp<ALooper> mLooper; sp<ARTSPController> mRTSPController; |