washingtonstateuniversity / WSUWP-Plugin-Analytics

Provides tracking scripts and GA ID management for WSU WordPress sites.
2 stars 0 forks source link

[PR] Add events for mediaelement audio and video players #11

Closed jeremyfelt closed 9 years ago

jeremyfelt commented 9 years ago

At some point we'll want to adjust this and make it more extensible. For now, it works.

We hijack the private-ish _wpmejsSettings object provided by core and provide one of our own that includes a success function which attaches events for playing, pausing, and ending audio and video.