Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Feature Request: isPlaying() method #181

Closed
dominic-p opened this Issue · 5 comments

3 participants

@dominic-p

Hello, in adding some custom event handlers I'm finding it necessary to determine if the video is currently playing or not. This is possible (albeit convoluted) with the HTML5 tech, but I have no idea how to go about it with the flash tech.

It might be nice to have an abstracted isPlaying() method that simply returns true or false based on if the video is playing or not.

@heff
Owner

You can use the paused() function. myPlayer.paused() will return false if it's playing. This is how HTML5 video handles it, and with video.js it will work with HTML5 and flash.

@heff heff closed this
@dominic-p

Thanks. I can't believe I missed the .paused() method. It works perfectly.

@jorrit

paused() doesn't appear on http://videojs.com/docs/api/. Perhaps it can be added.

@heff
Owner
@jorrit

No update has happened, apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.