Oh, sorry. Now that I think of it, this probably isn't possible or realistic for pulseaudio. It's more the job of the application itself to pause playback.
** Changed in: pulseaudio (Ubuntu) Status: Incomplete => New ** Changed in: pulseaudio (Ubuntu) Status: New => Triaged ** Also affects: pulseaudio via https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/904 Importance: Unknown Status: Unknown ** Changed in: pulseaudio (Ubuntu) Status: Triaged => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1881284 Title: Pause the music after suspend Status in PulseAudio: Unknown Status in pulseaudio package in Ubuntu: Invalid Bug description: Hi, I don't know how to describe it. What I basically need is pause the media/music automatically after I come back from suspend. Let's suppose we're suspending the laptop while playing the media (Spotify, youtube) ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: gnome-shell 3.36.2-1ubuntu1~20.04.1 ProcVersionSignature: Ubuntu 5.4.0-31.35-generic 5.4.34 Uname: Linux 5.4.0-31-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Fri May 29 18:09:52 2020 DisplayManager: gdm3 InstallationDate: Installed on 2020-05-04 (24 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) RelatedPackageVersions: mutter-common 3.36.2-1ubuntu1~20.04.1 SourcePackage: gnome-shell UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/pulseaudio/+bug/1881284/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp