Fires when the track pauses.
Also dispatched as the riff:pause event on #riff, with the same detail. The event bubbles.
Parameters
detailObject- What changed.
trackObjectThe track.
apiObjectwindow.riff.
More Information
Usage
wp.hooks.addAction( 'riff.pause', 'my-plugin', ( detail, api ) => {
} );
// Or, without wp-hooks:
window.riff.on( 'pause', ( detail ) => {} );Source
emit( 'pause', { track: track() } );plugins/riff/assets/riff.jsView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |