Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14498

Re: new Audio

Date 2012-06-14 19:06 +1000
From Andrew Poulos <ap_prog@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: new Audio
References <0tudneRal766OUTSnZ2dnUVZ_oidnZ2d@westnet.com.au>
Message-ID <VKqdnRHTz8EMNETSnZ2dnUVZ_oGdnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


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

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web