New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 678945 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Android MediaRouter only (left Chro...
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Media artwork flickers when switching src

Project Member Reported by zqzh...@chromium.org, Jan 6 2017

Issue description

This is due to the session goes uncontrollable and controllable again, causing a signal for resetting metadata & controls to null to be sent. MediaSessionTabHelper keeps the notification showing for a few seconds thus the artwork is reset to the default image.

This signal is unnecessary and safe to remove, since the metadata & controls will be sent another time if the session goes controllable again.
 
Labels: -Pri-3 Pri-2
Project Member

Comment 2 by bugdroid1@chromium.org, Jan 10 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1

commit f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1
Author: zqzhang <zqzhang@chromium.org>
Date: Tue Jan 10 22:17:44 2017

[MediaSession] Don't reset metadata and actions when the session goes uncontrollable

When switching media element src, MediaSession goes uncontrollable and
then controllable. The current MediaSession routing algorithm resets
metadata and controls when the session goes uncontrollable. However this
resetting is unnecessary but will cause notification flickering as well.
This CL removes the unnecessary reset signal.

BUG= 678945 

Review-Url: https://codereview.chromium.org/2612293003
Cr-Commit-Position: refs/heads/master@{#442708}

[modify] https://crrev.com/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1/content/browser/media/session/media_session_impl.cc
[modify] https://crrev.com/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1/content/browser/media/session/media_session_impl_browsertest.cc
[modify] https://crrev.com/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1/content/browser/media/session/media_session_impl_service_routing_unittest.cc
[add] https://crrev.com/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1/content/browser/media/session/mock_media_session_observer.cc
[add] https://crrev.com/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1/content/browser/media/session/mock_media_session_observer.h
[modify] https://crrev.com/f64ef58c0294ed6ad7468c9ca7155a6e4430d8f1/content/test/BUILD.gn

Status: Fixed (was: Started)

Sign in to add a comment