-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media stream detached from window in some cases? #598
Comments
Alternate steps to reproduce the problem:
|
Alternate steps to reproduce the problem:
|
So whenever you have multiple windows you should have multiple |
I'm setting priority to low because I doubt this will be ever fixed in Gecko. We should wait for the Chromium backend to fix it. |
I can't reproduce this issue in Firefox for Android, fwiw @svillar |
I tried to investigate this a little bit, looks like the mediaSession in that tab session has no control over the music at all (either pause or stop). And anyway, after session is closed, everything should get recycled, so I will assume this is something related to Gecko's bug as well. Although I'm not sure why it works for Firefox on Android. |
I also experienced similar bugs which I believe are caused by the same culprit in Gecko:
I tried to debug the Spotify page, and I see no js error there, I also tried to add a catching log at muteAudio here and never see it being called during the process. I also tried to check the Android debug log and saw no error as well. wolvic/app/src/common/gecko/com/igalia/wolvic/browser/api/impl/MediaSessionDelegateImpl.java Lines 137 to 139 in 033f5bd
So it must be some kind of bug in Gecko, and I believe it's because Gecko has some bugs identifying the media and activating mediaSession in the current web session. I think Firefox for Android might have implemented some methods to mitigate this issue on their side, but I'm not exactly sure how. |
Resolve #353 (can't reproduce in Gecko 120 nightly) Resolve #598 (Spotify issue is also okay if disable DRM) Signed-off-by: Songlin Jiang <[email protected]>
Resolve #353 (can't reproduce in Gecko 120 nightly) Resolve #598 (Spotify issue is also okay if disable DRM) Signed-off-by: Songlin Jiang <[email protected]>
Now I know what's going on here, looks like it's because of our patch to Gecko: https://github.com/Igalia/wolvic-gecko-patches/blob/main/gecko-116.0.3/0007-Fix-YouTube-media-stopping-when-closing-a-window.patch This issue seems to be a side effect of that patch, and we still have YouTube media stopped when closing a window even in Gecko 120 nightly And we still have the error for Spotify despite the patch we already have. |
Resolve #353 (can't reproduce in Gecko 120 nightly) Improve the Spotify issue mentioned in #598 Signed-off-by: Songlin Jiang <[email protected]>
Resolve #353 (can't reproduce in Gecko 120 nightly) Improve the Spotify issue mentioned in #598 Signed-off-by: Songlin Jiang <[email protected]>
Do you mean that the patch causes the regression described in this issue and that it even doesn't fix the problems with YouTube ? |
Yes.
Actually, I don't think that is a root fix, just a workaround. Since I can reproduce the YouTube media stops issue when closing a window even in Gecko 120 nightly without that patch, and YouTube works fine after I apply that patch, the patch does mitigate the YouTube issue. |
Configuration
Wolvic version: 1.3.3
Wolvic build ID: 83
Hardware: Quest 2
Steps to Reproduce
Current Behavior
For several (though, not all) once audio starts playing, if the user launches a private session or, from the tab thumbnails view, closes the tab actively playing the music (or otherwise manages to supplant it out of the shown windows) the music continues. In the case the window is closed, the only way to stop this is to reboot the browser. Observed this behavior on trajectile command, iron rails (several heyvr games, but not all), robot rally.
Expected Behavior
Any sense of "closing" the window should cease all work associated with it..
The text was updated successfully, but these errors were encountered: