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

Issue 545993002: Provide fine grained media playback time thru interpolation (Closed)

Created:
6 years, 3 months ago by qinmin
Modified:
6 years, 3 months ago
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
Project:
chromium
Visibility:
Public.

Description

Provide fine grained media playback time thru interpolation This CL includes the following changes: 1. Reduces the interval of media time update msg to 16 ms 2. Use interpolation to calculate the current playback time, and guarantee that time is always incrementing BUG=327425 Committed: https://crrev.com/4360c7c14b1ca7e4509015166d44d1e1ad17b4bd Cr-Commit-Position: refs/heads/master@{#294612}

Patch Set 1 #

Total comments: 8

Patch Set 2 : addressing comments #

Total comments: 2

Patch Set 3 : remove unnecessary stop call on interpolator #

Patch Set 4 : change interpolation interval to 100 ms #

Patch Set 5 : rebase #

Patch Set 6 : fix unittest #

Patch Set 7 : rebase #

Patch Set 8 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -36 lines) Patch
M content/browser/media/android/browser_media_player_manager.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M content/common/media/media_player_messages_android.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.h View 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/media/android/renderer_media_player_manager.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 3 4 5 chunks +11 lines, -6 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 6 7 9 chunks +31 lines, -10 lines 0 comments Download
A media/base/android/media_common_android.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M media/base/android/media_player_bridge.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M media/base/android/media_player_manager.h View 1 chunk +4 lines, -2 lines 0 comments Download
M media/base/android/media_source_player.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/media.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
qinmin
PTAL
6 years, 3 months ago (2014-09-05 16:48:55 UTC) #2
scherkus (not reviewing)
https://codereview.chromium.org/545993002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/545993002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode171 content/renderer/media/android/webmediaplayer_android.cc:171: interpolator_.SetUpperBound(base::TimeDelta()); is this needed? the docs and code make ...
6 years, 3 months ago (2014-09-05 20:12:57 UTC) #3
qinmin
https://codereview.chromium.org/545993002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/545993002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode171 content/renderer/media/android/webmediaplayer_android.cc:171: interpolator_.SetUpperBound(base::TimeDelta()); It will return 0 only if interpolator_.StartInterpolating() is ...
6 years, 3 months ago (2014-09-05 21:32:19 UTC) #4
scherkus (not reviewing)
so thinking about this more ... are we sure that simply making that change from ...
6 years, 3 months ago (2014-09-05 23:17:45 UTC) #6
qinmin
I think if the browser process is busy or if there is a long IPC ...
6 years, 3 months ago (2014-09-05 23:33:43 UTC) #7
qinmin
https://codereview.chromium.org/545993002/diff/40001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/545993002/diff/40001/content/renderer/media/android/webmediaplayer_android.cc#newcode763 content/renderer/media/android/webmediaplayer_android.cc:763: is_playing_ = false; On 2014/09/05 23:17:45, scherkus wrote: > ...
6 years, 3 months ago (2014-09-05 23:45:09 UTC) #8
scherkus (not reviewing)
On 2014/09/05 23:33:43, qinmin wrote: > I think if the browser process is busy or ...
6 years, 3 months ago (2014-09-09 21:10:38 UTC) #9
qinmin
On 2014/09/09 21:10:38, scherkus wrote: > On 2014/09/05 23:33:43, qinmin wrote: > > I think ...
6 years, 3 months ago (2014-09-09 21:33:04 UTC) #10
scherkus (not reviewing)
lgtm assuming you've tried this out ... it's better than what we have today and ...
6 years, 3 months ago (2014-09-10 19:57:31 UTC) #11
qinmin
On 2014/09/10 19:57:31, scherkus wrote: > lgtm assuming you've tried this out ... it's better ...
6 years, 3 months ago (2014-09-11 01:18:06 UTC) #12
qinmin
+palmer for IPC OWNER
6 years, 3 months ago (2014-09-11 01:19:22 UTC) #14
palmer
lgtm
6 years, 3 months ago (2014-09-11 18:26:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/545993002/100001
6 years, 3 months ago (2014-09-11 18:33:13 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/14643) android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/3813) android_dbg_tests_recipe ...
6 years, 3 months ago (2014-09-11 19:04:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/545993002/120001
6 years, 3 months ago (2014-09-11 22:23:53 UTC) #21
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/65866) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54936) android_clang_dbg_recipe ...
6 years, 3 months ago (2014-09-11 22:31:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/545993002/140001
6 years, 3 months ago (2014-09-11 23:22:24 UTC) #25
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/65895) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54992) win_gpu ...
6 years, 3 months ago (2014-09-12 00:47:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/545993002/160001
6 years, 3 months ago (2014-09-12 16:48:57 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:160001) as 529d12e4bd7e1e48655c858cb831e025041fd502
6 years, 3 months ago (2014-09-12 18:01:06 UTC) #30
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 18:07:28 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4360c7c14b1ca7e4509015166d44d1e1ad17b4bd
Cr-Commit-Position: refs/heads/master@{#294612}

Powered by Google App Engine
This is Rietveld 408576698