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.

soundsDirectory option not working as expected

See original GitHub issue

Description

soundsDirectory: null not working as expected.

Even when specified as null media network requests performing anyway. image

And mathlive attempts to make it speakable. Seems like no option to completely disable this “speech” feature.

I’ve specified soundsDirectory, keypressSound, plonkSound to null and no any effect.

image

I need to disable this feature because I don’t need to play any sounds and more on that - it produces this issue: image Error text: [Intervention] Blocked attempt to create a WebMediaPlayer as there are too many WebMediaPlayers already in existence. See crbug.com/1144736#c27

And for me it’s a problem because I can have dozens of mathfields on the page. Each one in that case triggers a lot of media requests and takes memory.

Steps to Reproduce

  1. Specify soundsDirectory option as null for mathfield(s)
  2. Reload the page with mathfield(s)

Actual Behavior

A lot of media requests still performing and mathlive attepmts to make each mathfield speakable.

image

Error text: [Intervention] Blocked attempt to create a WebMediaPlayer as there are too many WebMediaPlayers already in existence. See crbug.com/1144736#c27

Expected Behavior

When soundsDirectory specified as null no any media requests performing and mathfield(s) becomes completely “silent”, without any speech-related logic happening and stucking the browser.

Seems like soundsDirectory config option was introduced in version 0.60.0 and according to the comment, it should work as I described here.

image

Environment

0.84.0

Windows

Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
evgenynycommented, Dec 6, 2022

Just to let you know - this fix helped. Issue has been resolved.

Thanks again for the quick response.

2reactions
arnogcommented, Nov 15, 2022

Using "null" as an attribute will now suppress the loading of sounds.

That said, I have rewritten the way sounds are played, and you should no longer have the errors about WebMediaPlayer that you saw before.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot audio problems in Windows Media Center
Here are solutions to some common problems with audio in Windows Media Center. You can also try running a troubleshooter to diagnose and...
Read more >
Adding sounds to your EdgeTX SD Card / No ... - YouTube
I don't do this to replace a day job so if you have found the content useful then and want to support ......
Read more >
Advanced Linux Sound Architecture/Troubleshooting - ArchWiki
First make sure the volume is enabled under the Capture view in alsamixer. In some case, the "Internal Microphone" is not displayed in...
Read more >
Sounds Are Not Working - ClassDojo Helpdesk - Zendesk
Open your class · Click on "Options" then select "Display settings" · Scroll down to find "Play award sounds" and make sure both...
Read more >
QLab Troubleshooting — Gareth Fry - Sound Design
The “This cue does not have a valid audio output device” or “No audio device” error message indicates to us that QLab can't...
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