I currently have a Netflix Canada media notification from Fenix even though I don't have Netflix loaded in any tabs.
I can reproduce the problem by loading netflix and while it's loading loading another page like a google search.
I have STR for the same effect, that might be related: https://github.com/mozilla-mobile/reference-browser/issues/942
On Netflix I'm not able to play anything, as every title I tap, I get an Unknown protocol error. I'm trying to reproduce it on twitter.
On Netflix I'm not able to play anything, as every title I tap, I get an Unknown protocol error. I'm trying to reproduce it on twitter.
We don't support EME on mobile which Netflix needs for video playback.
In some sites, like Youtube as soon as the URL changes (even in the same domain) or the back button is pressed the notification disappears right away. But in other sites like Twitter or Instagram the notification persists until we change to a new domain.
I believe what makes this behavior change from site to site is onPlaybackStateChange
But still I haven't encountered a situation where the notification gets stuck. Just the no standard behavior per site.
@Amejia481 @jrmuizel do these STRs work to reproduce the issue? https://github.com/mozilla-mobile/reference-browser/issues/942
Steps to reproduce
- Go to twitter and find a thread that has a gif or auto-playing video in it.
- From the main twitter feed, go to twitter thread.
- Observe the media notification show up.
- Press back to return to your twitter feed.
- Observe the notification tray.
Expected behavior
- At 5, the notification should be gone when leaving thread thread.
Actual behavior
- The media notification persists in the playing state and cannot be removed until force closing the app.
@jonalmeida I can partially reproduce the issue because the notification, persists while I'm on any Twitter's page but as soon as I navigate to another website the notification go away, the same happens with Instagram, but not with youtube
I think the frustrating part is that the notification cannot be dismissed even after pausing the video.
Example:
The media notification is "stuck" and cannot be dismissed. This behavior is different from Chrome, where it can be dismissed.
related https://bugzilla.mozilla.org/show_bug.cgi?id=1631907. Will investigate/retest this issue after GeckView fix is in.
Since the GV team needs priorities, we should add fenix:p1 label to the whiteboard so GV knows this is prioritized. (fenix:p2 is another option, but I'm going to go with P1 since this has been around for a while, and we're prioritizing Media this quarter)
Oh wait, reading through that bug, Agi suggests that we do the following:
Sorry I should've clarified. You need to use the new API for this to work (and in my local testing it does work).
Start here: https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/MediaSession.html
So this is not blocked I believe, and I'll remove the waiting label.
Not reproducible with the new MediaSession API. Put back to backlog till the new MediaSession API is integrated in Fenix.
With https://github.com/mozilla-mobile/fenix/pull/16909. This should be fixed in Dec 9th nightly.
Please verify. Thanks,
Hi all!
I've verified the twitter scenario, and after tapping back from the thread, the notification is dismissed.
And also, verified
- Go to https://m.standaard.be/cnt/dmf20200402_04910902
- Turn off Enhanced Tracking Protection (for some reason, this blocks the video on this particular site)
- Play video. Media notification is shown in the notification area.
- Press pause on the video player or media notification.
- Try to dismiss the notification.
The media notification is "stuck" and cannot be dismissed. This behavior is different from Chrome, where it can be dismissed.
the media notification can be dismissed after pausing the video.
Tested on 12/10 Firefox Nightly build, with Samsung Galaxy Tab S6 (Android 10), OnePlus 5T (Android 9), and Sony Xperia Z5 Premium (Android 7.1.1).