Title: Add class while playing
Last modified: August 31, 2016

---

# Add class while playing

 *  Resolved [Owlathome77](https://wordpress.org/support/users/owlathome77/)
 * (@owlathome77)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/add-class-while-playing/)
 * Hi, I’m wondering if it is possible to tie into the plugin from my own js file(
   without editing the actual plugin code) to add a class to the container while
   the video is playing or when it stops?
    Thanks for the help!
 * [https://wordpress.org/plugins/wpmbytplayer/](https://wordpress.org/plugins/wpmbytplayer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/add-class-while-playing/#post-7017051)
 * Hi,
    the plugin expose several events that you can use. Check the javascript 
   doc here:
 * [https://github.com/pupunzi/jquery.mb.YTPlayer/wiki](https://github.com/pupunzi/jquery.mb.YTPlayer/wiki)
 * Bye,
    Matteo

Viewing 1 replies (of 1 total)

The topic ‘Add class while playing’ is closed to new replies.

 * ![](https://ps.w.org/wpmbytplayer/assets/icon.svg?rev=1544312)
 * [mb.YTPlayer for background videos](https://wordpress.org/plugins/wpmbytplayer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmbytplayer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmbytplayer/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmbytplayer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmbytplayer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmbytplayer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/add-class-while-playing/#post-7017051)
 * Status: resolved