Title: pause playback
Last modified: August 20, 2016

---

# pause playback

 *  Resolved [hansford77](https://wordpress.org/support/users/hansford77/)
 * (@hansford77)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/)
 * Hi, I would like to be able to pause playback of the video from jquery. Is this
   possible?
 * [http://wordpress.org/extend/plugins/wp-youtube-lyte/](http://wordpress.org/extend/plugins/wp-youtube-lyte/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/#post-3499784)
 * I suppose that, if the lyte-embed got loaded with enablejsapi=1 ([cfr. faq](http://wordpress.org/extend/plugins/wp-youtube-lyte/faq/)),
   it should be possible to tie into it with jquery, but I don’t really know how,
   to be honest.
 * Hope this helps nonetheless!
 *  Thread Starter [hansford77](https://wordpress.org/support/users/hansford77/)
 * (@hansford77)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/#post-3499813)
 * Thanks, I’ll investigate further! On a related note, do you know how to reinitialise
   the plugin from jquery? as I need to do this after using quicksand.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/#post-3499821)
 * you can reinitialise by issuing ly.te()
 *  Thread Starter [hansford77](https://wordpress.org/support/users/hansford77/)
 * (@hansford77)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/#post-3499875)
 * Thanks for that. In case anyone else has the same problem, there is a slight 
   issue in that sometimes d (document) is overwritten (either by quicksand or the
   reinitalisation), and the plugin stops working. I copied d=document into ly.te
   and it’s fine now.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/#post-3499894)
 * Thanks for that last point. It is nteresting, as I (incorrectly, apperantly) 
   supposed ‘d’ was protected as it was defined in a closure.
 * Anyway, instead of re-defining d, could you try if changing line 2 solves the
   bug as well;
 * `d = document;`
    into `var d = document;`
 * I would expect that to fix the problem as well (and it’s … cleaner 🙂 )
 * I’ll include this small tweak in 1.2.0 if it turns out OK.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘pause playback’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/pause-playback/#post-3499894)
 * Status: resolved