D
D
Derick Wire2015-10-02 01:38:55
JavaScript
Derick Wire, 2015-10-02 01:38:55

What is the difference between "play" and "playing" html5 audio events?

What is the difference between " play " and " playing " html5 audio events, the description says:
play Dispatched when media playback starts after it has been paused; that is, when playback resumes after a pause.
playing Dispatched when the media starts playing (for the first time, after a pause, or after a restart).
In both cases, playback after a pause, because initially paused = true , or I somehow interpreted it wrong for myself, please tell me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sofin, 2015-10-02
@mmetro

The play event fires immediately, while the playing event fires after buffering.

P
patch1, 2015-10-02
@patch1

Play - the file is played first, without the ability to play after a pause
Playing - you can play after a pause
, I guess something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question