Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Is there a way to show the number of viewers on a website video like youtube has

@henrywright

Moderator

Hi @lynnham

It’s possible as I’ve done it with audio in the past. The play event fires on the <video> element so you could target it like this:

$( 'video' ).on( 'play', function( event ) {
    // Do your stuff here.
} );

ended, playing and pause events are also available if you need to use them.

Skip to toolbar