soundsDirectory option not working as expected
See original GitHub issueDescription
soundsDirectory: null
not working as expected.
Even when specified as null
media network requests performing anyway.
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.
I need to disable this feature because I don’t need to play any sounds and more on that - it produces this issue: 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
- Specify
soundsDirectory
option asnull
for mathfield(s) - Reload the page with mathfield(s)
Actual Behavior
A lot of media requests still performing and mathlive attepmts to make each mathfield speakable.
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.
Environment
0.84.0
Windows
Chrome
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top GitHub Comments
Just to let you know - this fix helped. Issue has been resolved.
Thanks again for the quick response.
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.