Andrew Poulos
12/9/2014 10:37:00 PM
On 10/12/2014 8:57 AM, Evertjan. wrote:
> Andrew Poulos <ap_prog@hotmail.com> wrote on 09 dec 2014 in
> comp.lang.javascript:
>
>> On 9/12/2014 8:03 PM, Evertjan. wrote:
>>> Andrew Poulos <ap_prog@hotmail.com> wrote on 09 dec 2014 in
>>> comp.lang.javascript:
>>>
>>>> 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?
>>>
>>> You cannot click on an mp4-video as it is a file or a stream,
>>> and surely such stream cannot pass coordinates,
>>> also as a stream "cursor" has only one dimension.
>>>
>>> Even if I try to guess what you really mean,
>>> it seems to me that you should read the specs of HTML5 video playing.
>>>
>>>> I want to use JavaScript to control what "chapters" in a
>>>> video are played and I don't want "external" buttons.
>>>
>>> It is nice to know what you want and don't want,
>>> while trying to imagine what "internal" buttons are,
>>> but even if that would impact on the top Q,
>>> that does not make this top Q an on-topic Q for this NG.
>>>
>> Sorry for being unclear but I didn't know how to word my question any
>> better. I want to be able to click a video and then, depending on what
>> part of the video was clicked, the video would jump to a different part
>> (a chapter).
>>
>> Anyhow my question was answered
>
> I doubt that.
Well, any response to my question is an answer to it ;-)
>> and I'm now looking into using event
>> listeners with the video element.
>
> The event-listeners will possibly give you the pixel-coordinates
> of the mouse[-cursor], is that what you wanted?
>
> What do those coordinates have to do with the "chapter" [your word]?
I'd like to be able to click on an area of the video and jump to, and
play from, a specific chapter in the video itself. So in effect the
controller is itself the video (plus some js).
Andrew Poulos