CodeDezk CodeDezk - 1 year ago 123
HTML Question

Get video frame count HTML

I am trying to get video frame count as the code here

I have downloaded videoFrame.js from here and located in my website directory.

But while clicking on play the video not playing also getting error like,

ReferenceError: $ is not defined
in the line
var currentFrame = $('#currentFrame');


<!DOCTYPE html>


<div class="frame">
<span id="currentFrame">0</span>

<video height="180" width="100%" id="video">
<source src=""></source>

<div id="controls">
<button id="play-pause">Play</button>


var currentFrame = $('#currentFrame');
var video = VideoFrame({
id : 'video',
frameRate: 29.97,
callback : function(frame) {




Answer Source

You need to include jQuery add

<script src=""></script>

to the html head.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download