Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |