Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Unified Diff: media/base/android/media_player_android.cc

Issue 896673003: Propagate audible state from player to the containing tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/android/media_player_android.cc
diff --git a/media/base/android/media_player_android.cc b/media/base/android/media_player_android.cc
index 954ba96c70d2f67d487daa923774e10d112ffe8b..92f6c53776f4ce4748906b8f91d4b2fed8f5b618 100644
--- a/media/base/android/media_player_android.cc
+++ b/media/base/android/media_player_android.cc
@@ -79,5 +79,9 @@ void MediaPlayerAndroid::DetachListener() {
listener_->ReleaseMediaPlayerListenerResources();
}
+void MediaPlayerAndroid::SetAudible(bool is_audible) {
+ manager_->OnAudibleStateChanged(player_id(), is_audible);
qinmin 2015/02/03 20:33:24 For each SetAudible() call, the AudioMonitorAndroi
Tima Vaisburd 2015/02/03 23:53:05 Added another |bool is_audible_;| to MediaPlayerAn
+}
+
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698