Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26644
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: test for autoplay |
| Date | Thu, 22 Jan 2015 01:10:59 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 43 |
| Message-ID | <20918931.tqhR82Bbs5@PointedEars.de> (permalink) |
| References | <ttCdnYD1iYEQjl3JnZ2dnUVZ8v-dnZ2d@westnet.com.au> <2227075.ZdhQdnHKJ3@PointedEars.de> <m9p9im$dhi$1@solani.org> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1421885498 1609 eJwFwYkBwCAIA8CVDE+04xQk+4/gXTrB3sFkpFIx6vJZ/h3zG+UR/O+YFk1j6E0UjroFpOEBI30RHw== (22 Jan 2015 00:11:38 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Thu, 22 Jan 2015 00:11:38 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwNx8ERACEIA8CW4ISg5Rgl/Zdwzr42BxynAolIPe2sI/m6OWZsou9gqAp4IcxMbUwt/yR01fwubfsKg/MHajEVwQ== |
| Cancel-Lock | sha1:Z5UkqEZi9qkMU1P9TOP99MGsQ6s= |
| X-NNTP-Posting-Host | eJwFwYcBwDAIA7CXSBkm5zDi/0+o5BonBhYe5nS2vS5m7BVuAtuKr8inYnOrMuCSgtMpI6gfNHIRZg== |
| Xref | csiph.com comp.lang.javascript:26644 |
Show key headers only | View raw
Christoph M. Becker wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> […] I don't understand "$(audio).on('play', function() {"
>>>
>>> What is it doing?
>>
>> This is the jQuery way of adding an event listener for the “play” event
>> to the element referred to by “audio”. Apparently the standards-
>> compliant
>>
>> audio.onplay = function () {
>> AUTOPLAY = true;
>> };
>>
>> was too hard for them :->
>
> I had only found the onplay property of the MediaController
> interface[1], but have not been able to verify that the HTMLAudioElement
> interface is supposed to inherit MediaController. Where is that
> specified?
GlobalEventHandlers which is implemented by HTMLElement which is inherited
by HTMLMediaElement which is inherited by HTMLAudioElement.
>> This code creates an “audio” element in memory (using a proprietary
>> approach; the standards-compliant approach would be
>> “document.createElement("audio")”)
>
> It seems to me the Audio constructor is specified in the W3C HTML5
> Recommendation.[2]
I stand corrected.
> […]
> [2] <http://www.w3.org/TR/html5/embedded-content-0.html#dom-audio>
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
test for autoplay Andrew Poulos <ap_prog@hotmail.com> - 2015-01-22 07:55 +1100
Re: test for autoplay Scott Sauyet <scott.sauyet@gmail.com> - 2015-01-21 13:17 -0800
Re: test for autoplay Andrew Poulos <ap_prog@hotmail.com> - 2015-01-22 08:42 +1100
Re: test for autoplay Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-21 23:03 +0100
Re: test for autoplay "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-21 23:35 +0100
Re: test for autoplay Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-22 01:10 +0100
Re: test for autoplay "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-22 14:14 +0100
csiph-web