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


Groups > comp.lang.javascript > #26288

Re: click in mp4

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: click in mp4
Date Tue, 09 Dec 2014 10:51:08 +0000
Organization A noiseless patient Spider
Lines 16
Message-ID <874mt5m6zn.fsf@bsb.me.uk> (permalink)
References <r8CdnTYAcoC-_RvJnZ2dnUVZ8vWdnZ2d@westnet.com.au>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="9907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qrDH6cbQwjnb0t49+WwtPSNW/MUtxtgw="
Cancel-Lock sha1:ROquVJsS9L+HShSC8m6ABcyAjaY= sha1:PbzroxI0CUwtyJ3BZUAxY4zxnRQ=
X-BSB-Auth 1.ed8ab7774f0d0e5634d8.20141209105108GMT.874mt5m6zn.fsf@bsb.me.uk
Xref csiph.com comp.lang.javascript:26288

Show key headers only | View raw


Andrew Poulos <ap_prog@hotmail.com> writes:

> Is it possible for an mp4 video that is running natively in a HTML 5
> capable browser to pass the coordinates of the cursor when the video
> is clicked on? I want to use JavaScript to control what "chapters" in
> a video are played and I don't want "external" buttons.

I hope you won't mind my re-wording this.  Do you mean you want a
client-side function to called, with the mouse position being passed,
every time the user clicks on an HTML5 video element?  I ask this
because it works (as far as I know) the same as for any other element:
add an even listener for the element, and it will be called with the
event as an argument.

-- 
Ben.

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


Thread

click in mp4 Andrew Poulos <ap_prog@hotmail.com> - 2014-12-09 13:31 +1100
  Re: click in mp4 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-09 10:03 +0100
    Re: click in mp4 Andrew Poulos <ap_prog@hotmail.com> - 2014-12-10 07:38 +1100
      Re: click in mp4 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-09 22:57 +0100
        Re: click in mp4 Andrew Poulos <ap_prog@hotmail.com> - 2014-12-10 09:36 +1100
          Re: click in mp4 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-10 09:59 +0100
  Re: click in mp4 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-12-09 10:51 +0000
    Re: click in mp4 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-09 19:29 +0100
  Re: click in mp4 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-09 18:50 +0100
  Re: click in mp4 Bart Van der Donck <bart@nijlen.com> - 2014-12-10 03:40 -0800

csiph-web