I need a way of getting the total time length of the video and the current time with jquery and displaying it in a couple of <div> tags.
<div id="current">0:00</div>
<div id="duration">0:00</div>
I've been searching all day and I know how to get them I just can't display them. #jquerynoob
I am assuming you want to display this as part of the player.
This site breaks down how to get both the current and total time regardless of how you want to display it though using jQuery:
http://dev.opera.com/articles/view/custom-html5-video-player-with-css3-and-jquery/
This will also cover how to set it to a specific div. As philip has already mentioned, .currentTime will give you where you are in the video.
https://www.w3schools.com/tags/av_event_timeupdate.asp
Working example here at : http://jsfiddle.net/tQ2CZ/1/
HTML
JS
HTML:
JavaScript:
Notes:
http://www.w3.org/TR/html5/embedded-content-0.html#media-controller-position
This page might help you out. Everything you need to know about HTML5 video and audio
If you already have the video element, .currentTime should work. If you need more details, that webpage should be able to help.