Open Bug 1747735 Opened 4 years ago Updated 3 years ago

I hear clicks when skipping video in muted tabs

Categories

(Core :: Audio/Video: cubeb, defect)

defect

Tracking

()

Tracking Status
firefox97 --- affected

People

(Reporter: giul.mus, Unassigned)

References

Details

Attachments

(1 file)

If I:

  1. play audio from an external application (eg. Spotify);
  2. play a YouTube video;
  3. mute the tab; and
  4. while the video is playing, skip a few seconds (eg. using the arrows),

I hear clicks at the moment I skip the video. This also happens if the video is muted via the YouTube player in an unmuted tab.

I confirmed this by opening Firefox and pavucontrol side by side: at the moment I skip, the Firefox entry disappears briefly and then is re-created.

If there are no other applications playing audio, I do not hear clicks, but the pulseaudio entry still disappears and reappears; if the video is NOT playing (i.e. paused) when I skip, I neither hear clicks nor see the pulseaudio entry disappearing.

I'm using Firefox Nightly on Arch Linux.

Firefox entry disappears briefly and then is re-created.
This is expected behavior, because every time when seeking happens, Firefox would destroy current audio backend stream and recreate a new one after seeking finishes.

What version of Firefox you're using? Does this issue also happen on a new profile or on a priviate browsing window? Does this issue only happen on Youtube? Or it would happen on all websites which play video?

In addition, would you mind to help me gather the log and dump recording audio by doing following steps?

  1. Open a terminal window
  2. cd ~/Desktop; MOZ_DUMP_AUDIO=1 MOZ_DISABLE_CONTENT_SANDBOX=1 MOZ_LOG=cubeb:5 MOZ_LOG_FILES=firefox-logs /usr/bin/firefox
  3. Reproduce the bug
  4. Gather all the files named firefox-logs.* and AudioStream* GraphDriverInput* GraphDriverOutput* that are on the desktop, the * denoting a numerical suffix in a zip, and attach them to the bug. The content of those files are explained in this other document.

Thank you so much.

Flags: needinfo?(giul.mus)

Done - I created a fresh Firefox profile, played a few seconds of audio from a YouTube video, muted the tab, then skipped several times, while another app was also playing audio. I couldn't get Firefox to generate GraphDriverInput* and GraphDriverOutput* even after setting the sandbox level to 0.

I'm using Firefox Nightly (the build from 2022-01-01 at the time I created the zip), and the bug also occurs on other sites (I was able to reproduce it on DailyMotion).

Flags: needinfo?(giul.mus)
Severity: -- → S4
See Also: → 1422637

This seems like a cubeb issue.

Component: Audio/Video: Playback → Audio/Video: cubeb

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

This will be fixed by bug 1743834. No audio stream will be opened when muted with those patches.

Depends on: 1743834
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: