Title: Play / Pause with javascript
Last modified: September 18, 2020

---

# Play / Pause with javascript

 *  Resolved [ideazero](https://wordpress.org/support/users/ideazero/)
 * (@ideazero)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/play-pause-with-javascript/)
 * I would like to create a play/pause button external from the player. Is there
   a javascript way?
    I mean for example: $(‘button’).on(‘click’,function(e){ player.
   play(); });
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Abu Hayat](https://wordpress.org/support/users/abuhayat/)
 * (@abuhayat)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/play-pause-with-javascript/#post-13425341)
 * player<?php echo $id; ?>.play();
    Try this one, Thanks

Viewing 1 replies (of 1 total)

The topic ‘Play / Pause with javascript’ is closed to new replies.

 * ![](https://ps.w.org/html5-video-player/assets/icon-128x128.png?rev=3475122)
 * [HTML5 Video Player – Embed and Play Videos in Custom Player](https://wordpress.org/plugins/html5-video-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html5-video-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html5-video-player/)
 * [Active Topics](https://wordpress.org/support/plugin/html5-video-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html5-video-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html5-video-player/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abu Hayat](https://wordpress.org/support/users/abuhayat/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/play-pause-with-javascript/#post-13425341)
 * Status: resolved