isVideoPlaying

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.is

This function allows you to know if a video is currently playing or not

Params

  1. $video*-HTMLVideoElement

    The video element to check

Return

  1. -Boolean

    true if the video is playing, false if not

Example

import { isVideoPlaying } from '@blackbyte/sugar/is'
if (isVideoPlaying($myVideo)) {
  // do something cool...
}

Todo

  • testsnormal