Open Bug 1876082 Opened 1 year ago Updated 1 year ago

Incorrect MediaSession metadata in YouTube videos with ads

Categories

(GeckoView :: Media, enhancement)

Firefox 121
All
Android
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: svillar, Unassigned)

Details

Steps to reproduce:

(this bug requires that an ad is played before the video, so if you have a subscription to YT better log out in order to get ads)

  1. Open a YouTube video with vertical format like https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjZ3qDf5vODAxUYTqQEHd8EDlwQyCl6BAgqEAQ&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAh0Ys50CqO8&usg=AOvVaw3o-Z1mG4sm5ABfVpC7bSjm&opi=89978449
  2. While the ad is played click on fullscreen

Actual results:

When fullscreen is selected the onFullscreen method of MediaSession.Delegate is called. That method carries metadata with information about the media that is being played. As we've clicked on fullscreen while the ad is played, the metadata information corresponds to the ad that is played.

Then later when the ad finishes and the video starts to play, no more metadata information is sent to the client.

Expected results:

There should be a way to get the metadata information about the media that is being played. In the case of the vertical video I mentioned the height is larger than the width, but as onFullscreen is emitted while the ad is played, the width and height that we get correspond to the sizes of the ad.

We get the correct values if we click on fullscreen after the ad is played.

The actual URL of the video is this one BTW

Component: Browser Engine → Media
Product: Fenix → GeckoView
Version: Firefox 118 → Firefox 116
Version: Firefox 116 → Firefox 121
Severity: -- → N/A
You need to log in before you can comment on or make changes to this bug.