Hi all
I've got a greasemonkey script that needs to play an audio file fairely
regularly. Is there any way I can tell greasemonkey to play the audio
from the local hard drive
e.g
If I pre-load it using
// @require https://website.com/alert.wav
I've got the following code that currently plays the audio from a URL
but it introduces a slight delay and I'd rather pre-load it locally if I
can.
var player = document.createElement('audio');
player.src = 'https://website.com/alert.wav';
player.preload = 'auto';
player.play();
Any suggestions welcome
Nick
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.