Closed
Bug 1489245
Opened 7 years ago
Closed 7 years ago
SUSPEND_MEDIA_WHEN_INACTIVE not working in Focus / 62 Rel Branch
Categories
(GeckoView :: Media, defect, P1)
GeckoView
Media
Tracking
(geckoview62 wontfix, firefox62 wontfix, firefox63 unaffected)
RESOLVED
WONTFIX
| Tracking | Status | |
|---|---|---|
| geckoview62 | --- | wontfix |
| firefox62 | --- | wontfix |
| firefox63 | --- | unaffected |
People
(Reporter: ekager, Assigned: kbrosnan)
Details
Added settings.setBoolean(GeckoSessionSettings.SUSPEND_MEDIA_WHEN_INACTIVE, true) to GeckoSession create method, but when app is backgrounded media is still playing. Maybe something additional needs to be uplifted for it to work because apparently it works in FxR (Nightly builds)?
Kevin, can you try this in the example app with 62?
Flags: needinfo?(kbrosnan)
Priority: -- → P1
Assignee: nobody → kbrosnan
Comment 2•7 years ago
|
||
Kevin will test whether the geckoview_example app exhibits the same behavior.
This is not a Focus+GV blocker, but it is a functional regression from Focus+WebView.
status-firefox62:
--- → wontfix
status-firefox63:
--- → affected
status-firefox64:
--- → affected
status-firefox-esr60:
--- → wontfix
status-geckoview62:
--- → fix-optional
| Assignee | ||
Comment 3•7 years ago
|
||
This works as expected, audio and video playback are paused when the app is not in focus, in the geckoview example app using.
--- a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
+++ b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
@@ -154,6 +154,7 @@ public class GeckoViewActivity extends A
session.getSettings().setBoolean(GeckoSessionSettings.USE_PRIVATE_MODE, mUsePrivateBrowsing);
session.getSettings().setBoolean(
GeckoSessionSettings.USE_TRACKING_PROTECTION, mUseTrackingProtection);
+ session.getSettings().setBoolean(GeckoSessionSettings.SUSPEND_MEDIA_WHEN_INACTIVE, true);
connectSession(session);
Tested YouTube, basic <video> with ogv, webm, mp4 and <audio> with ogg.
NI to let Emily know the outcome of the testing.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(kbrosnan) → needinfo?(ekager)
Resolution: --- → INVALID
Comment 4•7 years ago
|
||
Clearing status flags because this bug was resolved invalid.
status-firefox62:
wontfix → ---
status-firefox63:
affected → ---
status-firefox64:
affected → ---
status-firefox-esr60:
wontfix → ---
status-geckoview62:
fix-optional → ---
| Reporter | ||
Comment 5•7 years ago
|
||
I think this is still a problem see:
https://github.com/mozilla-mobile/focus-android/issues/3528
I can reproduce using SoundCloud
Status: RESOLVED → REOPENED
Flags: needinfo?(ekager)
Resolution: INVALID → ---
| Assignee | ||
Comment 6•7 years ago
|
||
Using Geckoview example soundcloud stops playback onBlur. This seems to be a Focus issue.
Comment 7•7 years ago
|
||
Only affects 62... will let this fade.
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
status-firefox62:
--- → wontfix
status-firefox63:
--- → unaffected
status-geckoview62:
--- → wontfix
Updated•6 years ago
|
Product: Firefox for Android → GeckoView
Comment 8•3 years ago
|
||
Moving some media bugs to the new GeckoView::Media component.
Component: General → Media
You need to log in
before you can comment on or make changes to this bug.
Description
•