Closed Bug 1126466 Opened 9 years ago Closed 9 years ago

[music] Use full-size album art in the player UI

Categories

(Firefox OS Graveyard :: Gaia::Music, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
NGA S1 (29May)
Tracking Status
b2g-master --- fixed

People

(Reporter: squib, Assigned: squib)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
djf
: review+
Details | Review
Currently, we use thumbnail-sized images in the music player. This looks bad on high-resolution devices, since we're scaling up from 300x300 pixels. Instead, we should use the full-size version of the art so that things look prettier.

Now would also be a good time to improve the transition between tracks, especially when they're in the same album. There's no need for a transition in that case.
Attached file Fix it
David: Does this seem like a sensible way to improve the loading of album art in the player view? We're using an offscreen Image object to get the onload event, but I think I did things right so that Gecko will decode the image at the right size.

Of course, I'm also open to further improvements here...
Attachment #8557189 - Flags: feedback?(dflanagan)
Comment on attachment 8557189 [details] [review]
Fix it

f- because I think that the combination of background-image plus an offscreen image will cause the image to be decoded at full size. See my comments on github.

Sometimes I worry about keeping too many blob urls or references to blobs around. Gallery seems to get away with it for all of its thumbnails. I don't know whether there is anything different about these blob urls that use blobs sliced out of much larger blobs.  At some point it might be good to do some memory profiling and make sure that this album art cache isn't causing a lot of memory to be allocated.  And if so, you could perhaps convert to a cache that flushes the least recently used items.
Attachment #8557189 - Flags: feedback?(dflanagan) → feedback-
Blocks: 1122648
Comment on attachment 8557189 [details] [review]
Fix it

Ok, this should be done. Only the last three commits in the PR matter; the others are only there because this work revealed a few bugs in the lazy loading for JS files in the music app.

I've opted to remove the "offscreen images" entirely in this PR. For the player view, they weren't actually helping. Things still look the same even without waiting for an offscreen image to load (in fact, I think that code wasn't doing what we expected anymore, since Gecko downsamples images now).

For the sublist view, since we're coming from a list view, we should already have the thumbnail cached, so we don't even need to fade in. This is pretty much how all the other list-based views work anyway.
Attachment #8557189 - Flags: feedback- → review?(dflanagan)
I added a bonus commit to this which makes album art crossfade when a new album starts. It's a lot smoother looking!
Comment on attachment 8557189 [details] [review]
Fix it

Jim,

This looks good to me. Various comments on github, including an idea for resolving your album art race condition. But pretty much everything I had to say was an optional suggestion.

Sorry that this review took so long.
Attachment #8557189 - Flags: review?(dflanagan) → review+
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#UB3Du4bdSKa6GVqxKOXWuw

The pull request failed to pass integration tests. It could not be landed, please try again.
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#ZhpN1XvVQnyvh01wiflXrw

The pull request failed to pass integration tests. It could not be landed, please try again.
One last try and then I'll just land it myself.
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#pJyxFA7eSJKofOncEnnQdQ

The pull request failed to pass integration tests. It could not be landed, please try again.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1170003
Target Milestone: --- → NGA S1 (29May)
Blocks: 1159028
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: