mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.16k stars 2.91k forks source link

[iPad] - Youtube videos are still playing in the background when opening new tabs or going to FF settings on iPad only #22089

Open abodea opened 2 weeks ago

abodea commented 2 weeks ago

Steps to reproduce

  1. Launch FF and open any video on YT and play it.
  2. Open any other website and navigate there.

    Expected behavior

    The YouTube video should stop when opening any other website or FF settings.

    Actual behavior

    YouTube videos are still playing in the background when opening new tabs or going to FF settings

    Device & build information

https://github.com/user-attachments/assets/a62211d7-b664-4337-afad-7e4aa83bfc50

┆Issue is synchronized with this Jira Task

data-sync-user commented 2 weeks ago

➤ Nishant Bhasin commented:

Norberto Andres Furlan This seems like a feature to be honest and behaves more like how desktop behaves

Andrei Bodea few questions a) What happens when you open bunch of YouTube tabs, do they all play at the same time or only one video plays? b) Does it only happen with YouTube? c) What about new window, as in if you open it in multiple window on iPad then does it also play?

data-sync-user commented 1 week ago

➤ Andrei Bodea commented:

Hello, the only feature that is from youtube is youtube premium and that costs real money to be able to listen to a video while you multi-task with other apps but in our case when you add FF to the background the sound stops so clearly it’s something with our app.

a) ← When opening more YouTube tabs and playing a video on each, the one that was last active keeps playing, if you select another tab where music was played, the music resumes there but the one you left stops. (Only the first opened YT video/music resume all the time when visiting it) the others stop

b) ← Yes only with youtube

c) ← It behaves the same way, still plays when I open settings for example, but when I access the other FF instance that is opened in split screen, the sound stops from the other one.

data-sync-user commented 1 week ago

➤ Norberto Andres Furlan commented:

Andrei Bodea can you check if the iPAD DMA Choice Screen is on the iOS 18.1 Beta already?

data-sync-user commented 4 days ago

➤ Andrei Bodea commented:

Hello, Norberto Andres FurlanI will look into this!