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)

defect

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)
Assignee: nobody → kbrosnan
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.
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
Clearing status flags because this bug was resolved invalid.
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 → ---
Using Geckoview example soundcloud stops playback onBlur. This seems to be a Focus issue.
Only affects 62... will let this fade.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → GeckoView

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.