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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/android/media_player_android.h" 5 #include "media/base/android/media_player_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "media/base/android/media_drm_bridge.h" 10 #include "media/base/android/media_drm_bridge.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 jobject j_context = base::android::GetApplicationContext(); 72 jobject j_context = base::android::GetApplicationContext();
73 DCHECK(j_context); 73 DCHECK(j_context);
74 74
75 listener_->CreateMediaPlayerListener(j_context, j_media_player); 75 listener_->CreateMediaPlayerListener(j_context, j_media_player);
76 } 76 }
77 77
78 void MediaPlayerAndroid::DetachListener() { 78 void MediaPlayerAndroid::DetachListener() {
79 listener_->ReleaseMediaPlayerListenerResources(); 79 listener_->ReleaseMediaPlayerListenerResources();
80 } 80 }
81 81
82 void MediaPlayerAndroid::SetAudible(bool is_audible) {
83 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
84 }
85
82 86
83 } // namespace media 87 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698