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

Issue 1076013002: Added stub MediaSourcePlayer for developing behind the flag (Closed)

Created:
5 years, 8 months ago by Tima Vaisburd
Modified:
5 years, 7 months ago
Reviewers:
qinmin, xhwang, timav, no sievers
CC:
chromium-reviews, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[RELAND] Added stub MediaSourcePlayer for developing behind the flag Added a new experimental flag and stub implementation for the player. Created Media thread and redirected demuxer messages to it. BUG=none Committed: https://crrev.com/8ad68b12db7db320a37e39e94be8d45205fee626 Cr-Commit-Position: refs/heads/master@{#329059} Committed: https://crrev.com/2a8c9fea422b7d5a56d40635f85cace48339b06e Cr-Commit-Position: refs/heads/master@{#329068}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed binding for SetVideoSurface #

Total comments: 8

Patch Set 3 : Got rid of extra namespace, renamed players and the flag #

Total comments: 7

Patch Set 4 : Fixed WeakPtr usage, disabled thread-safe checks for demuxer's IDMap #

Total comments: 4

Patch Set 5 : Used OverrideTaskRunnerForMessage as suggested by Xiaohan #

Total comments: 3

Patch Set 6 : DemuxerAndroid is called from MediaThread only, removed the lock #

Patch Set 7 : Removed unnecessary changes from non_thread_safe.h #

Total comments: 8

Patch Set 8 : Renamed old and new players, addressed some Xiaohan comments #

Total comments: 8

Patch Set 9 : Eliminated proxy player class as suggested by Xiaohan #

Total comments: 33

Patch Set 10 : TaskRunner as a member in demuxer, better macro in player #

Patch Set 11 : Added missed license header. #

Patch Set 12 : Fix GN build #

Total comments: 2

Patch Set 13 : A better GN compilation fix: added missed MEDIA_EXPORT #

Patch Set 14 : Fixed clang build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -16 lines) Patch
M content/browser/media/android/browser_demuxer_android.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -2 lines 0 comments Download
M content/browser/media/android/browser_demuxer_android.cc View 1 2 3 4 5 6 7 8 9 4 chunks +45 lines, -6 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 6 7 8 9 4 chunks +27 lines, -8 lines 0 comments Download
M media/base/android/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/android/media_codec_player.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +85 lines, -0 lines 0 comments Download
A media/base/android/media_codec_player.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +252 lines, -0 lines 0 comments Download
M media/base/android/media_player_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -0 lines 0 comments Download
M media/base/android/media_player_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -0 lines 0 comments Download
M media/base/media_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 73 (22 generated)
timav
Min, please take a look. This CL just creates the place for the future development. ...
5 years, 8 months ago (2015-04-09 21:10:02 UTC) #2
qinmin
https://codereview.chromium.org/1076013002/diff/20001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1076013002/diff/20001/chrome/browser/about_flags.cc#newcode726 chrome/browser/about_flags.cc:726: #if defined(OS_ANDROID) do we really need about flags for ...
5 years, 8 months ago (2015-04-15 18:12:47 UTC) #3
timav
Min, please take another look. If you like this change, I can add the actual ...
5 years, 8 months ago (2015-04-22 23:44:38 UTC) #4
qinmin
+xhwang for media.gyp OWNER.
5 years, 8 months ago (2015-04-22 23:56:59 UTC) #6
qinmin
https://codereview.chromium.org/1076013002/diff/40001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/40001/content/browser/media/android/browser_demuxer_android.cc#newcode100 content/browser/media/android/browser_demuxer_android.cc:100: handled = true; nit: no need for this line ...
5 years, 8 months ago (2015-04-23 18:48:38 UTC) #7
timav
https://codereview.chromium.org/1076013002/diff/40001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/40001/content/browser/media/android/browser_demuxer_android.cc#newcode100 content/browser/media/android/browser_demuxer_android.cc:100: handled = true; On 2015/04/23 18:48:38, qinmin wrote: > ...
5 years, 8 months ago (2015-04-23 23:06:12 UTC) #8
xhwang
I didn't review the whole CL. Just some initial comments regarding the demuxer. https://codereview.chromium.org/1076013002/diff/40001/content/browser/media/android/browser_demuxer_android.h File ...
5 years, 8 months ago (2015-04-24 05:04:13 UTC) #9
timav
https://codereview.chromium.org/1076013002/diff/60001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/60001/content/browser/media/android/browser_demuxer_android.cc#newcode134 content/browser/media/android/browser_demuxer_android.cc:134: base::AutoLock lock(lock_); On 2015/04/24 05:04:13, xhwang wrote: > This ...
5 years, 8 months ago (2015-04-24 18:55:32 UTC) #10
timav
I talked with Min and he pointed out that even now, with the lock, the ...
5 years, 8 months ago (2015-04-24 23:31:44 UTC) #11
qinmin
https://codereview.chromium.org/1076013002/diff/80001/base/threading/non_thread_safe.h File base/threading/non_thread_safe.h (right): https://codereview.chromium.org/1076013002/diff/80001/base/threading/non_thread_safe.h#newcode61 base/threading/non_thread_safe.h:61: #if defined(DISABLE_NON_THREAD_SAFE) why we need this here? https://codereview.chromium.org/1076013002/diff/80001/content/browser/media/android/browser_demuxer_android.h File ...
5 years, 7 months ago (2015-04-27 22:16:20 UTC) #12
timav
Please take a look at the version that calls demuxer on one thread (which is ...
5 years, 7 months ago (2015-04-27 23:33:01 UTC) #13
qinmin
lgtm on media/base/android. For BrowserDemuxerAndroid, it's unfortunate that OnDemuxerReady could arrive before Initialize().
5 years, 7 months ago (2015-04-28 17:53:06 UTC) #14
timav
On 2015/04/28 17:53:06, qinmin wrote: > lgtm on media/base/android. > For BrowserDemuxerAndroid, it's unfortunate that ...
5 years, 7 months ago (2015-04-28 18:30:52 UTC) #15
qinmin
On 2015/04/28 18:30:52, timav wrote: > On 2015/04/28 17:53:06, qinmin wrote: > > lgtm on ...
5 years, 7 months ago (2015-04-28 18:34:53 UTC) #16
xhwang
On 2015/04/28 18:34:53, qinmin wrote: > On 2015/04/28 18:30:52, timav wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 19:48:39 UTC) #17
xhwang
https://codereview.chromium.org/1076013002/diff/120001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/1076013002/diff/120001/content/browser/media/android/browser_media_player_manager.cc#newcode134 content/browser/media/android/browser_media_player_manager.cc:134: media_player_params.frame_url); nit: Use braces for complicated if/else statements. https://codereview.chromium.org/1076013002/diff/120001/media/base/android/media_source_player.cc ...
5 years, 7 months ago (2015-04-29 23:50:51 UTC) #18
timav
https://codereview.chromium.org/1076013002/diff/120001/content/browser/media/android/browser_media_player_manager.cc File content/browser/media/android/browser_media_player_manager.cc (right): https://codereview.chromium.org/1076013002/diff/120001/content/browser/media/android/browser_media_player_manager.cc#newcode134 content/browser/media/android/browser_media_player_manager.cc:134: media_player_params.frame_url); On 2015/04/29 23:50:51, xhwang wrote: > nit: Use ...
5 years, 7 months ago (2015-04-30 21:18:50 UTC) #19
xhwang
Sorry for the delay. Some more discussions... https://codereview.chromium.org/1076013002/diff/120001/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/1076013002/diff/120001/media/base/android/media_source_player.cc#newcode19 media/base/android/media_source_player.cc:19: MediaThread() : ...
5 years, 7 months ago (2015-05-01 06:55:05 UTC) #20
timav
https://codereview.chromium.org/1076013002/diff/140001/media/base/android/media_source_player_with_dedicated_thread.cc File media/base/android/media_source_player_with_dedicated_thread.cc (right): https://codereview.chromium.org/1076013002/diff/140001/media/base/android/media_source_player_with_dedicated_thread.cc#newcode74 media/base/android/media_source_player_with_dedicated_thread.cc:74: } On 2015/05/01 06:55:05, xhwang wrote: > Can you ...
5 years, 7 months ago (2015-05-01 18:14:10 UTC) #21
qinmin
https://codereview.chromium.org/1076013002/diff/140001/media/base/android/media_source_player_with_dedicated_thread.cc File media/base/android/media_source_player_with_dedicated_thread.cc (right): https://codereview.chromium.org/1076013002/diff/140001/media/base/android/media_source_player_with_dedicated_thread.cc#newcode76 media/base/android/media_source_player_with_dedicated_thread.cc:76: void MediaSourcePlayerWithDedicatedThread::Start() { On 2015/05/01 18:14:10, timav wrote: > ...
5 years, 7 months ago (2015-05-01 19:12:14 UTC) #22
xhwang
https://codereview.chromium.org/1076013002/diff/140001/media/base/android/media_source_player_with_dedicated_thread.cc File media/base/android/media_source_player_with_dedicated_thread.cc (right): https://codereview.chromium.org/1076013002/diff/140001/media/base/android/media_source_player_with_dedicated_thread.cc#newcode74 media/base/android/media_source_player_with_dedicated_thread.cc:74: } Sorry for the confusion. I was just proposing ...
5 years, 7 months ago (2015-05-01 20:26:35 UTC) #23
timav
On 2015/05/01 20:26:35, xhwang wrote: > No. I suggested to have MediaCodecPlayer posting tasks from ...
5 years, 7 months ago (2015-05-01 22:38:59 UTC) #24
xhwang
On 2015/05/01 22:38:59, timav wrote: > On 2015/05/01 20:26:35, xhwang wrote: > > No. I ...
5 years, 7 months ago (2015-05-01 23:06:21 UTC) #25
timav
On 2015/05/01 23:06:21, xhwang wrote: > On 2015/05/01 22:38:59, timav wrote: > > On 2015/05/01 ...
5 years, 7 months ago (2015-05-01 23:45:32 UTC) #26
timav
Min and Xiaohan, I combined two player classes into one by using DeleteOnCorrectThread() and re-posting ...
5 years, 7 months ago (2015-05-06 06:46:29 UTC) #27
xhwang
Looking pretty good! Just a few more comments. https://codereview.chromium.org/1076013002/diff/160001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/160001/content/browser/media/android/browser_demuxer_android.cc#newcode9 content/browser/media/android/browser_demuxer_android.cc:9: #include ...
5 years, 7 months ago (2015-05-06 17:42:44 UTC) #28
Tima Vaisburd
https://codereview.chromium.org/1076013002/diff/160001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/160001/content/browser/media/android/browser_demuxer_android.cc#newcode9 content/browser/media/android/browser_demuxer_android.cc:9: #include "media/base/android/media_codec_player.h" On 2015/05/06 17:42:44, xhwang wrote: > hmm, ...
5 years, 7 months ago (2015-05-08 07:30:54 UTC) #29
xhwang
Thanks for the clarifications and thanks for the patience! LGTM https://codereview.chromium.org/1076013002/diff/160001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/160001/content/browser/media/android/browser_demuxer_android.cc#newcode9 ...
5 years, 7 months ago (2015-05-08 17:12:36 UTC) #30
timav
On 2015/05/08 17:12:36, xhwang wrote: > Thanks for the clarifications and thanks for the patience! ...
5 years, 7 months ago (2015-05-08 17:31:55 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/180001
5 years, 7 months ago (2015-05-08 17:38:33 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/62171)
5 years, 7 months ago (2015-05-08 17:55:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/200001
5 years, 7 months ago (2015-05-08 21:15:10 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/220001
5 years, 7 months ago (2015-05-08 21:35:53 UTC) #44
no sievers
https://codereview.chromium.org/1076013002/diff/220001/content/browser/BUILD.gn File content/browser/BUILD.gn (right): https://codereview.chromium.org/1076013002/diff/220001/content/browser/BUILD.gn#newcode348 content/browser/BUILD.gn:348: "//media/base/android:android", Why doesn't content_browser depend on this in gyp? ...
5 years, 7 months ago (2015-05-08 22:17:39 UTC) #46
timav
https://codereview.chromium.org/1076013002/diff/220001/content/browser/media/android/browser_demuxer_android.cc File content/browser/media/android/browser_demuxer_android.cc (right): https://codereview.chromium.org/1076013002/diff/220001/content/browser/media/android/browser_demuxer_android.cc#newcode65 content/browser/media/android/browser_demuxer_android.cc:65: media::GetMediaTaskRunner().get() : Without the BUILD.gn change in content the ...
5 years, 7 months ago (2015-05-08 22:32:01 UTC) #47
no sievers
On 2015/05/08 22:32:01, timav wrote: > https://codereview.chromium.org/1076013002/diff/220001/content/browser/media/android/browser_demuxer_android.cc > File content/browser/media/android/browser_demuxer_android.cc (right): > > https://codereview.chromium.org/1076013002/diff/220001/content/browser/media/android/browser_demuxer_android.cc#newcode65 > ...
5 years, 7 months ago (2015-05-08 22:34:10 UTC) #48
no sievers
On 2015/05/08 22:34:10, sievers wrote: > On 2015/05/08 22:32:01, timav wrote: > > > https://codereview.chromium.org/1076013002/diff/220001/content/browser/media/android/browser_demuxer_android.cc ...
5 years, 7 months ago (2015-05-08 23:00:26 UTC) #49
timav
On 2015/05/08 23:00:26, sievers wrote: > On 2015/05/08 22:34:10, sievers wrote: > > On 2015/05/08 ...
5 years, 7 months ago (2015-05-08 23:32:56 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/240001
5 years, 7 months ago (2015-05-08 23:40:19 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_rel on ...
5 years, 7 months ago (2015-05-09 04:02:10 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/240001
5 years, 7 months ago (2015-05-09 04:17:53 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_rel on ...
5 years, 7 months ago (2015-05-09 12:14:52 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/240001
5 years, 7 months ago (2015-05-09 13:49:22 UTC) #61
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 7 months ago (2015-05-09 23:56:50 UTC) #62
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/8ad68b12db7db320a37e39e94be8d45205fee626 Cr-Commit-Position: refs/heads/master@{#329059}
5 years, 7 months ago (2015-05-09 23:57:48 UTC) #63
miu
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/1132973002/ by miu@chromium.org. ...
5 years, 7 months ago (2015-05-10 01:37:33 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/260001
5 years, 7 months ago (2015-05-10 04:27:56 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_rel on ...
5 years, 7 months ago (2015-05-10 07:59:40 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076013002/260001
5 years, 7 months ago (2015-05-10 15:16:36 UTC) #71
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 7 months ago (2015-05-10 16:43:02 UTC) #72
commit-bot: I haz the power
5 years, 7 months ago (2015-05-10 16:44:48 UTC) #73
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/2a8c9fea422b7d5a56d40635f85cace48339b06e
Cr-Commit-Position: refs/heads/master@{#329068}

Powered by Google App Engine
This is Rietveld 408576698