Compartilhar via


onplaying event

Occurs when the audio or video has started playing.

 

Syntax

Event Property object.onplaying = handler;
addEventListener Method object.addEventListener("playing", handler, useCapture)

 

Event information

Synchronous No
Bubbles No
Cancelable No

 

Event handler parameters

  • handler [in]
    Type: function

    Event handler object.

Standards information

Remarks

To invoke this event, do one of the following:

  • Start playing the media element.

See also

How to use HTML5 to play video files on your webpage

How to use HTML5 to Add an Audio Player to your Webpage

Make your videos accessible with Timed Text Tracks

onplay