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.
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.