Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 379
    • Issues 379
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Issues
  • #1214
Closed
Open
Issue created Aug 31, 2020 by interfect@interfectContributor

Background playback doesn't work in the new Fenix version of Firefox for Android

Steps to reproduce

  1. Use the new Android Firefox (Fenix-based).
  2. Queue up multiple songs to play in Funkwhale.
  3. Start them playing.
  4. Switch away from the browser or lock the phone.

What happens?

Payback will stop when the song ends and Funkwhale will not continue on to the next track in the queue.

I think the tab is getting declared inactive and suspended by the browser. When I set dom.suspend_inactive.enabled to false in about:config, playback continues to the next track correctly. But it also seems to run into https://github.com/mozilla-mobile/fenix/issues/1461: playback is slightly choppy/distorted, presumably because the browser isn't waking up enough to play the audio consistently and meet relevant deadlines.

I think the distortion still occurs when the about:config workaround is not set. It just only affects the first song because that's all it will play.

What is expected?

Playback should continue through the whole queue, with no distortion or delay in providing audio data to the output.

There also probably ought to be a system-level media player notification displayed by the browser, with media controls that control Funkwhale.

Context

Funkwhale version(s) affected: 0.21.2

This problem may be because the browser hasn't been informed that the page is a media player; the tab in the tab list lacks the integrated pause button that other media sites have, and there's no system media-playing notification created (which is a new feature this version of Android Firefox is supposed to provide). Apparently this notification is an important part of making sure the app wakes up enough to keep the media playing smoothly (see the linked issue).

Assignee
Assign to
Time tracking