New issue
Advanced search Search tips

Issue 912395 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Media notification on CrOS flashes

Project Member Reported by beccahughes@chromium.org, Dec 6

Issue description

Now we have multiple media notifications on CrOS keyed by the audio focus request id, when we click next/previous track we hide and show the notification. This is only a problem with web media sessions because we are navigating.

My initial thoughts on this problem are that if we fire next/previous track and then start a navigation on the same origin we should keep audio focus even though the players drop.
 
Do you have examples of cases when next/previous leads to a navigation? I remember this issue on Chrome Android but it was due to the playback of the new element taking time because of loading. What we did was to delay hiding the notification (see https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java?rcl=1cf02aec69538c7586be225b66b8f798d81e461a&l=48).
YouTube is an example here, they do a same document navigation and recreate the video element. This means that we drop audio focus while we go next/previous.

Sign in to add a comment