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

Issue 141273004: Play automatically when reloading the audio player with new songs. (Closed)

Created:
6 years, 11 months ago by mtomasz
Modified:
6 years, 11 months ago
Reviewers:
hirono
CC:
chromium-reviews, feature-media-reviews_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Play automatically when reloading the audio player with new songs. Because of introducing an async call during initialization, the new appstate was being changed. Playing a song adds a 'time' field to the appstate. Having a time field causes pausing the audio player once the initialization is finished. To avoid this, a copy is made, to avoid altering the input 'playlist' object. TEST=Tested manually. Partly browser tests. BUG=335422 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245493

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -72 lines) Patch
M chrome/browser/resources/file_manager/foreground/js/media/audio_player.js View 5 chunks +8 lines, -16 lines 5 comments Download
M chrome/browser/resources/file_manager/foreground/js/media/media_controls.js View 2 chunks +14 lines, -56 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mtomasz
@hirono: PTAL. Thanks!
6 years, 11 months ago (2014-01-17 04:06:03 UTC) #1
hirono
lgtm with a nit. https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js File chrome/browser/resources/file_manager/foreground/js/media/audio_player.js (right): https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js#newcode76 chrome/browser/resources/file_manager/foreground/js/media/audio_player.js:76: AudioPlayer.instance.load(window.appState); Can we keep the ...
6 years, 11 months ago (2014-01-17 05:12:12 UTC) #2
mtomasz
https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js File chrome/browser/resources/file_manager/foreground/js/media/audio_player.js (right): https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js#newcode76 chrome/browser/resources/file_manager/foreground/js/media/audio_player.js:76: AudioPlayer.instance.load(window.appState); On 2014/01/17 05:12:12, hirono wrote: > Can we ...
6 years, 11 months ago (2014-01-17 05:14:30 UTC) #3
hirono
https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js File chrome/browser/resources/file_manager/foreground/js/media/audio_player.js (right): https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js#newcode76 chrome/browser/resources/file_manager/foreground/js/media/audio_player.js:76: AudioPlayer.instance.load(window.appState); On 2014/01/17 05:14:30, mtomasz wrote: > On 2014/01/17 ...
6 years, 11 months ago (2014-01-17 05:18:48 UTC) #4
mtomasz
https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js File chrome/browser/resources/file_manager/foreground/js/media/audio_player.js (right): https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js#newcode76 chrome/browser/resources/file_manager/foreground/js/media/audio_player.js:76: AudioPlayer.instance.load(window.appState); On 2014/01/17 05:18:48, hirono wrote: > On 2014/01/17 ...
6 years, 11 months ago (2014-01-17 05:27:42 UTC) #5
hirono
https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js File chrome/browser/resources/file_manager/foreground/js/media/audio_player.js (right): https://codereview.chromium.org/141273004/diff/1/chrome/browser/resources/file_manager/foreground/js/media/audio_player.js#newcode76 chrome/browser/resources/file_manager/foreground/js/media/audio_player.js:76: AudioPlayer.instance.load(window.appState); On 2014/01/17 05:27:42, mtomasz wrote: > On 2014/01/17 ...
6 years, 11 months ago (2014-01-17 05:32:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/141273004/1
6 years, 11 months ago (2014-01-17 06:54:59 UTC) #7
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 10:41:10 UTC) #8
Message was sent while issue was closed.
Change committed as 245493

Powered by Google App Engine
This is Rietveld 408576698