Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14497 > unrolled thread
| Started by | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| First post | 2012-06-14 18:43 +1000 |
| Last post | 2012-06-14 19:06 +1000 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.lang.javascript
new Audio Andrew Poulos <ap_prog@hotmail.com> - 2012-06-14 18:43 +1000
Re: new Audio Andrew Poulos <ap_prog@hotmail.com> - 2012-06-14 19:06 +1000
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2012-06-14 18:43 +1000 |
| Subject | new Audio |
| Message-ID | <0tudneRal766OUTSnZ2dnUVZ_oidnZ2d@westnet.com.au> |
If I call var ddd = new Audio(); ddd.src = s; // s is a URL to an MP3 ddd.play(); the audio plays but when I later call ddd.stop(); the audio does not stop. Is this how stop is supposed to be called? Andrew Poulos
[toc] | [next] | [standalone]
| From | Andrew Poulos <ap_prog@hotmail.com> |
|---|---|
| Date | 2012-06-14 19:06 +1000 |
| Message-ID | <VKqdnRHTz8EMNETSnZ2dnUVZ_oGdnZ2d@westnet.com.au> |
| In reply to | #14497 |
On 14/06/2012 6:43 PM, Andrew Poulos wrote: > If I call > > var ddd = new Audio(); > ddd.src = s; // s is a URL to an MP3 > ddd.play(); > > the audio plays but when I later call > > ddd.stop(); > > the audio does not stop. Is this how stop is supposed to be called? Doh, there's no stop method (why, I don't know) but there's a pause. Andrew Poulos
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web