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

Issue 643353002: Listen to the audio focus event for MSE/EME (Closed)

Created:
6 years, 2 months ago by qinmin
Modified:
6 years, 2 months ago
Reviewers:
Miguel Garcia, xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org, avayvod+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Listen to the audio focus event for MSE/EME For MSE/EME, we never listen to the audio focus change. That will cause the video to continue playing when another app plays sound. Attach MediaPlayerListener to the MediaSourcePlayer should fix the issue. BUG=421861 Committed: https://crrev.com/68c2a8660c66d1a4e84eda6e84d0bb62bf3aa272 Cr-Commit-Position: refs/heads/master@{#299819}

Patch Set 1 #

Total comments: 8

Patch Set 2 : nits #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -72 lines) Patch
M media/base/android/java/src/org/chromium/media/MediaPlayerListener.java View 1 chunk +8 lines, -6 lines 0 comments Download
M media/base/android/media_player_android.h View 1 2 3 chunks +29 lines, -0 lines 0 comments Download
M media/base/android/media_player_android.cc View 3 chunks +44 lines, -1 line 0 comments Download
M media/base/android/media_player_bridge.h View 1 2 5 chunks +6 lines, -16 lines 0 comments Download
M media/base/android/media_player_bridge.cc View 1 2 5 chunks +5 lines, -26 lines 0 comments Download
M media/base/android/media_player_listener.h View 1 4 chunks +9 lines, -7 lines 0 comments Download
M media/base/android/media_player_listener.cc View 4 chunks +15 lines, -16 lines 0 comments Download
M media/base/android/media_source_player.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
qinmin
PTAL
6 years, 2 months ago (2014-10-10 23:50:59 UTC) #2
qinmin
friendly ping
6 years, 2 months ago (2014-10-14 17:39:29 UTC) #4
xhwang
Sorry for the delay. Some minor comments and questions. https://codereview.chromium.org/643353002/diff/1/media/base/android/media_player_android.h File media/base/android/media_player_android.h (right): https://codereview.chromium.org/643353002/diff/1/media/base/android/media_player_android.h#newcode104 media/base/android/media_player_android.h:104: ...
6 years, 2 months ago (2014-10-14 18:23:30 UTC) #5
qinmin
https://codereview.chromium.org/643353002/diff/1/media/base/android/media_player_android.h File media/base/android/media_player_android.h (right): https://codereview.chromium.org/643353002/diff/1/media/base/android/media_player_android.h#newcode104 media/base/android/media_player_android.h:104: void AttachListener(jobject j_media_player); On 2014/10/14 18:23:30, xhwang wrote: > ...
6 years, 2 months ago (2014-10-14 21:55:51 UTC) #6
xhwang
lgtm
6 years, 2 months ago (2014-10-15 16:51:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643353002/120001
6 years, 2 months ago (2014-10-15 18:35:31 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/79423) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/69004) android_aosp ...
6 years, 2 months ago (2014-10-15 18:39:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643353002/140001
6 years, 2 months ago (2014-10-16 00:46:18 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:140001)
6 years, 2 months ago (2014-10-16 02:08:50 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 02:09:36 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/68c2a8660c66d1a4e84eda6e84d0bb62bf3aa272
Cr-Commit-Position: refs/heads/master@{#299819}

Powered by Google App Engine
This is Rietveld 408576698