For example, the ringing tone would play in a continuous loop until you "answer the phone" by pressing Spacebar, which would toggle your computer's microphone so you can talk as though you're talking on the phone to someone.
Out of curiosity, how would I loop a piece of audio? For example, if I want the ringing tone to loop until someone "answers" the phone by pressing a key, what would I write?
I fixed it, but now the only sound that plays right away is the "Ringing Tone". I can't get the others to play by pressing any keys. What do I do next? For example, I press Enter to toggle the "Hookswitch", but it doesn't do anything.
Interesting. So if I were to eventually turn this into a desktop app, would it still have the same crazy error? That would be a pain in the padded rear!
And once you put it up then I could copy all the new changes into my page? Would I have to delete all the HTML and script that's full of errors and just put the new stuff in there?
It seems I can manually trigger the playing of files by pressing the "Play" button next to them on the "Info" page's "Media" tab in Firefox. However, I can't seem to get anything to play when pressing any keystrokes. What did I do wrong?
Here's something interesting. Now I've added a new variable, and it says I'm missing a } at the line 99:24. Here's the code.
var Ringback=new Audio('Call%20Progress%20Tones/Ringback%20Tones/USA%20Ringback%20Tone.mp3');
Ringback.play();
}
}
Does this look right to you?
I know the file it's looking for, but I'm not sure why it can't find it, because I know it's there. And, I tried posting it as an attachment in this post, but there's a message that says .mp3 is not an allowed extension on Code Forum.