Title: Player control with javascript
Last modified: August 21, 2016

---

# Player control with javascript

 *  [sushilsmailbox](https://wordpress.org/support/users/sushilsmailbox/)
 * (@sushilsmailbox)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/player-control-with-javascript/)
 * I am unable to track average play time of a video
    I need get video id and current
   play time in javascript variable
 * [https://wordpress.org/plugins/contus-video-gallery/](https://wordpress.org/plugins/contus-video-gallery/)

Viewing 1 replies (of 1 total)

 *  [karthikeyani](https://wordpress.org/support/users/karthikeyani/)
 * (@karthikeyani)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/player-control-with-javascript/#post-5119608)
 * Hi,
 * You can get video id of the currently playing video using `function current_video(
   vid,title)`. We have already used this function in wp-content/plugins/contus-
   video-gallery/js/script.js file. To get current play time, we need to modify 
   player file. So contact our supporting team at [assist@apptha.com](https://wordpress.org/support/topic/player-control-with-javascript/assist@apptha.com?output_format=md).

Viewing 1 replies (of 1 total)

The topic ‘Player control with javascript’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contus-video-gallery_ba544b.svg)
 * [WORDPRESS VIDEO GALLERY](https://wordpress.org/plugins/contus-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contus-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contus-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/contus-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contus-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contus-video-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [karthikeyani](https://wordpress.org/support/users/karthikeyani/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/player-control-with-javascript/#post-5119608)
 * Status: not resolved