Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Juliusz Chroboczek <jch@irif.fr>
To: Alexander Dietrich <alexander@dietrich.cx>
Cc: Galene Mailing List <galene@lists.galene.org>
Subject: [Galene] Re: Experimental outbound activity detection
Date: Wed, 11 Nov 2026 17:28:44 +0100	[thread overview]
Message-ID: <87ld6zwcw3.wl-jch@irif.fr> (raw)
In-Reply-To: <179414433550.1815.11606576572822765913@gauss>

> I was trying to understand what's missing for outbound activity detection
> (aka "Is this thing on?"), and learned that there is a "totalAudioEnergy"
> property for outgoing WebRTC streams as well, but it's not yet implemented
> in Firefox:
> https://developer.mozilla.org/en-US/docs/Web/API/RTCAudioSourceStats/totalAudioEnergy

Yes.  Firefox's support for WebRTC is unfortunately incomplete, there are
a number of workarounds in the code for Firefox's bugs.  I really need to
check if they are still needed in recent versions (and display a warning
if the user is running an old version of Firefox).

A workaround would be to push the output through a WebAudio component,
I hear that WebAudio is well supported under Firefox.  I don't know if it
would increase CPU usage by much.

(WebAudio is a lot of fun, by the way, it's what's used on the login page
for the Fourier transform.  It could be used for implementing audio
filters, it's extremely flexible if you don't care about CPU and battery
usage.)

> https://github.com/jech/galene/compare/master...alxndr42:galene:outbound-activity

I don't think you need maxAudioEnergy, there should be only one audio track.

> It does seem to work in Chromium, using largely the existing code. Here's
> an experimental branch, please let me know what you think:
> https://github.com/jech/galene/compare/master...alxndr42:galene:outbound-activity

I haven't looked yet, but one thing comes to mind: we currently use
different intervals for up and down stats, so the appearance will be
different.  Should we make the intervals equal, now that the up connection
stats are no longer visible by default?

> So right now the code detects no activity in Firefox, but "should" start
> to work if they eventually implement the missing parts.

Don't count on it.  I fear there's nobody working on WebRTC at Firefox.

-- Juliusz


           reply	other threads:[~2026-11-11 16:28 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <179414433550.1815.11606576572822765913@gauss>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ld6zwcw3.wl-jch@irif.fr \
    --to=jch@irif.fr \
    --cc=alexander@dietrich.cx \
    --cc=galene@lists.galene.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox