Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30071
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Osmo Saarikumpu <osmo@weppipakki.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Server side push.....? |
| Date | Tue, 22 Mar 2016 06:41:54 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 16 |
| Message-ID | <ncqi8b$5fm$1@dont-email.me> (permalink) |
| References | <d368656e-5dfd-4849-ba04-d47c8e390d9a@googlegroups.com> <nch3jl$id7$1@dont-email.me> <c975d1be-3a33-4540-b68f-892bcd6b4fb4@googlegroups.com> <nckigk$9b1$1@dont-email.me> <57c45602-9198-451a-9b17-cda497126b6e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 22 Mar 2016 04:38:35 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="d5ab7db3f6e253626b5e181fb875cc15"; logging-data="5622"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AD5HA3guGOsJaA5aT2YGo" |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
| In-Reply-To | <57c45602-9198-451a-9b17-cda497126b6e@googlegroups.com> |
| Cancel-Lock | sha1:H3EE3XeBNtqWjB4lW3qL2nTjU30= |
| Xref | csiph.com comp.lang.javascript:30071 |
Show key headers only | View raw
On 21/03/2016 20:06, bit-naughty@hotmail.com wrote:
>... but how would you get the handler to be called whenever a song finishes......?
Use the HTML5 audio element and the HTMLMediaElement[1] interface which
provides an 'ended' attribute, among others. E.g.:
var myplayer = document.createElement("audio");
myplayer.addEventListener("ended",function() {
/* move to next song,
change album cover, etc. */
});
[1] https://www.w3.org/TR/html5/embedded-content-0.html#htmlmediaelement
--
Best wishes, Osmo
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Server side push.....? bit-naughty@hotmail.com - 2016-03-18 01:24 -0700
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-18 11:36 -0300
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-19 10:17 -0700
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-19 19:09 -0300
Re: Server side push.....? Ram Tobolski <ramtob@gmail.com> - 2016-03-20 12:12 -0700
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-21 11:06 -0700
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-21 17:03 -0300
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-22 00:18 -0700
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-22 18:55 -0300
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-28 05:16 -0700
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-28 18:26 -0300
Re: Server side push.....? Osmo Saarikumpu <osmo@weppipakki.com> - 2016-03-22 06:41 +0200
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-22 00:19 -0700
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-22 00:21 -0700
Re: Server side push.....? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-22 09:53 +0100
Re: Server side push.....? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-03-22 09:54 +0000
Re: Server side push.....? bit-naughty@hotmail.com - 2016-03-27 12:32 -0700
Re: Server side push.....? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-03-28 09:49 +0200
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-22 18:38 -0300
Re: Server side push.....? JJ <jj4public@vfemail.net> - 2016-03-19 12:54 +0700
Re: Server side push.....? Stefan Weiss <krewecherl@gmail.com> - 2016-03-21 01:21 +0100
Re: Server side push.....? Aleksandro <aleksandro@gmx.com> - 2016-03-21 10:38 -0300
csiph-web