question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A lighter (and/or auto-scaling) alternative to audio levels to reduce browser/client CPU usage?

See original GitHub issue

As was discovered in https://community.jitsi.org/t/host-a-meeting-with-500-people-ideas/34672/4, the audio levels indicator feature seems to be causing significant amounts of CPU usage in browsers, which in turn tend to increase heat, ventilation, noise, choppiness, etc.

I was wondering if you have particular plans to optimize this automatically (especially when there are more than a handful of participants?), because appending #disableAudioLevels=true to the URL is not something that we can reasonably expect non-geeks / casual users to discover and do.

I like knowing who’s speaking right now, and having some sort of confirmation that their microphone is working, but I don’t need to see a fancy high-resolution vumeter updated at 60fps.

I am just guessing here, but I suspect that showing a static icon could “do the job” while using virtually no CPU at all, and you could even do it with unicode characters such as :

  • 🔈 speaker (Unicode code point: U+1F508)
  • 🔉 speaker with one sound wave (Unicode code point: U+1F509)
  • 🔊 speaker with three sound waves (Unicode code point: U+1F50A)

…as found on https://graphemica.com/characters/tags/sound

So you could have these indicator “icon” states, automanaged and updated at most once every 250-1000ms:

  1. Nothing shown when the person is not talking
  2. 🔈 shown when the person has “recently” talked but no sound is “currently” detected (and then reset to state 1 after a few seconds)
  3. 🔉 and 🔊 alternating to indicate sound being currently detected

This is basically how Mumble and how videogames have tackled the problem (in Planetside2 for example, if someone speaks locally they have a static speaker icon over their head, probably because that game can have hundreds of players at once in a map area)

(this proposal does not influence the muted and quelched status icons, it’s really about replacing the audio levels with something less cpu-expensive…)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
afrankecommented, Nov 30, 2020

Oh, look! Activity!

2reactions
afrankecommented, Aug 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Yet another activity-to-prevent-stupid-bot-from-closing-still-valid-issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scaling based on CPU utilization - Compute Engine
The autoscaler treats the target CPU utilization level as a fraction of the average use of all vCPUs over time in the instance...
Read more >
HOW TO REDUCE CPU USAGE WITH ANY DAW AND MAKE ...
I'm Jon Sine uploading daily vlogs about my life as a DJ & Producer. Listen to the songs used in this video: ...
Read more >
How to create an Amazon EC2 Auto Scaling policy based on a ...
This is the first in a two-part series about how to create an Amazon EC2 Auto Scaling policy based on memory utilization metric....
Read more >
Automatically scaling pods with the horizontal pod autoscaler
You can create a horizontal pod autoscaler to specify the minimum and maximum number of pods you want to run, as well as...
Read more >
Kubernetes Autoscaling - 3 Common Methods Explained
HPA scaling calculations can also use custom or external metrics. Custom metrics target a marker of pod usage other than CPU usage, such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found