Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30085
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Aleksandro <aleksandro@gmx.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Server side push.....? |
| Date | Tue, 22 Mar 2016 18:55:26 -0300 |
| Organization | A noiseless patient Spider |
| Lines | 36 |
| Message-ID | <ncseqh$uv1$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> <ncpjrv$9it$1@dont-email.me> <88126020-bead-4bf5-8072-8233f58d31e9@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 22 Mar 2016 21:52:18 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="7363fa7664fe264696fafdff2cecae6a"; logging-data="31713"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ikYtRrBxe7q6/EuyLmyWXZwaccQdyle0=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 |
| In-Reply-To | <88126020-bead-4bf5-8072-8233f58d31e9@googlegroups.com> |
| Cancel-Lock | sha1:OL9+P3+kChc0qC0GkN3eqaKLiXA= |
| Xref | csiph.com comp.lang.javascript:30085 |
Show key headers only | View raw
On 22/03/16 04:18, bit-naughty@hotmail.com wrote: > On Tuesday, March 22, 2016 at 1:33:18 AM UTC+5:30, Aleksandro wrote: > >> >> I would see if the playback API emits some event on finish or I would >> poll for it's status first. > > Sorry I didn't understand this statement - what is the meaning of "playback API"? The API (you must know what that is) that is exposed in the client side by whatever element you are using to perform the actual playback. > What are you expecting from the server side, exactly? (since, in this case, *I* will be programming both ends....:) ) The data you want to fetch, of course. > Does the name updating run independently of the song playing? Amongst other things, when a new user connects to the stream, they should get the name of the song playing *now*...... That sounds like metadata, it can be in the stream itself, but it depends on the stream type of course. > The AJAX stuff runs simultaneously with the rest of the stuff like audio streaming, right? It's programmatic, you make it run as you see fit. Excessive polling will tire you server though. > i.e it's "get the name of a new song, get it's cover, show both" right? Does that mean it's multitasking, like, does it need WebWorkers or something? Javascript is always multi-tasking. I don't have experience with WebWorkers but you don't need them. > How would you "poll for its status"? When? If the interface won't emit any of the events I want to listen to, I would set up an interval checking it's status every 500ms or 1s.
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