diff options
author | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-07 15:21:35 +0000 |
---|---|---|
committer | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-07 15:21:35 +0000 |
commit | 129d7b9c25f46fb4f24492e06b0c2826e5ff7008 (patch) | |
tree | 24af3b737f9b6b33ad9a779a503b9c56ea636be1 /content/browser/android/media_player_manager_impl.h | |
parent | 4173deb98818228626644e8c032963a0e1d09a48 (diff) | |
download | chromium_src-129d7b9c25f46fb4f24492e06b0c2826e5ff7008.zip chromium_src-129d7b9c25f46fb4f24492e06b0c2826e5ff7008.tar.gz chromium_src-129d7b9c25f46fb4f24492e06b0c2826e5ff7008.tar.bz2 |
Handle config changes for MSE
In case of config changes, we need to recreate the MediaCodec. Here is the workflow:
1. MediaSourcePlayer now stores the surface for later use.
2. Once a config change is detected, it sends an IPC requesting the new config.
3. upon receiving the new config, it creates a new MediaCodec using the stored surface
Youtube Dash player should work after this patch
BUG=233420
Review URL: https://chromiumcodereview.appspot.com/16098014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/android/media_player_manager_impl.h')
-rw-r--r-- | content/browser/android/media_player_manager_impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/android/media_player_manager_impl.h b/content/browser/android/media_player_manager_impl.h index a16e7fa..fbb1b94 100644 --- a/content/browser/android/media_player_manager_impl.h +++ b/content/browser/android/media_player_manager_impl.h @@ -74,7 +74,8 @@ class MediaPlayerManagerImpl virtual media::MediaPlayerAndroid* GetPlayer(int player_id) OVERRIDE; virtual void DestroyAllMediaPlayers() OVERRIDE; virtual void OnMediaSeekRequest(int player_id, base::TimeDelta time_to_seek, - bool request_surface) OVERRIDE; + unsigned seek_request_id) OVERRIDE; + virtual void OnMediaConfigRequest(int player_id) OVERRIDE; virtual void OnKeyAdded(int player_id, const std::string& key_system, const std::string& session_id) OVERRIDE; @@ -121,7 +122,7 @@ class MediaPlayerManagerImpl virtual void OnReadFromDemuxerAck( int player_id, const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); - void OnMediaSeekRequestAck(int player_id); + void OnMediaSeekRequestAck(int player_id, unsigned seek_request_id); void OnGenerateKeyRequest(int player_id, const std::string& key_system, const std::string& type, |