diff options
author | Manikanta Sivapala <msivap@codeaurora.org> | 2015-07-21 19:33:40 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:24:32 -0600 |
commit | c9792cdfba32fd517b7940d5d1a2a93496afb80c (patch) | |
tree | 66c297f3339f844d43faab2391e3b76c191023fd /include | |
parent | 15019fc4fb84fef2c50274c6d10907e3a6dd14aa (diff) | |
download | frameworks_av-c9792cdfba32fd517b7940d5d1a2a93496afb80c.zip frameworks_av-c9792cdfba32fd517b7940d5d1a2a93496afb80c.tar.gz frameworks_av-c9792cdfba32fd517b7940d5d1a2a93496afb80c.tar.bz2 |
frameworks/av: Changes related to DASH
1) Add MEDIA_QOE event type
2) Open certain methods for extension by declaring them as virtual
3) Add DASH_PLAYER as a new player type
4) Creating DASH Player factory
Change-Id: I0376841530218703fabd9d4f45d2c9a32a1f52b2
Diffstat (limited to 'include')
-rw-r--r-- | include/media/MediaPlayerInterface.h | 1 | ||||
-rw-r--r-- | include/media/mediaplayer.h | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h index df10577..745151b 100644 --- a/include/media/MediaPlayerInterface.h +++ b/include/media/MediaPlayerInterface.h @@ -51,6 +51,7 @@ enum player_type { // The shared library with the test player is passed passed as an // argument to the 'test:' url in the setDataSource call. TEST_PLAYER = 5, + DASH_PLAYER = 6, }; diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h index 3fe749c..c55e56c 100644 --- a/include/media/mediaplayer.h +++ b/include/media/mediaplayer.h @@ -54,6 +54,7 @@ enum media_event_type { MEDIA_INFO = 200, MEDIA_SUBTITLE_DATA = 201, MEDIA_META_DATA = 202, + MEDIA_QOE = 300, }; // Generic error codes for the media player framework. Errors are fatal, the @@ -209,7 +210,7 @@ public: void died(); void disconnect(); - status_t setDataSource( + virtual status_t setDataSource( const sp<IMediaHTTPService> &httpService, const char *url, const KeyedVector<String8, String8> *headers); @@ -224,7 +225,7 @@ public: status_t prepareAsync(); status_t start(); status_t stop(); - status_t pause(); + virtual status_t pause(); bool isPlaying(); status_t setPlaybackSettings(const AudioPlaybackRate& rate); status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */); @@ -234,7 +235,7 @@ public: float* videoFps /* nonnull */); status_t getVideoWidth(int *w); status_t getVideoHeight(int *h); - status_t seekTo(int msec); + virtual status_t seekTo(int msec); status_t getCurrentPosition(int *msec); status_t getDuration(int *msec); status_t reset(); @@ -243,7 +244,7 @@ public: status_t setLooping(int loop); bool isLooping(); status_t setVolume(float leftVolume, float rightVolume); - void notify(int msg, int ext1, int ext2, const Parcel *obj = NULL); + virtual void notify(int msg, int ext1, int ext2, const Parcel *obj = NULL); status_t invoke(const Parcel& request, Parcel *reply); status_t setMetadataFilter(const Parcel& filter); status_t getMetadata(bool update_only, bool apply_filter, Parcel *metadata); @@ -289,6 +290,7 @@ private: float mSendLevel; struct sockaddr_in mRetransmitEndpoint; bool mRetransmitEndpointValid; + friend class QCMediaPlayer; }; }; // namespace android |