Developers

wp.hooks.doAction( 'riff.pause', detail, api )

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.
  • trackObject
    The track.
apiObject
window.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() } );

Changelog

VersionDescription
4.0.0Introduced.