The Media Session API plugin for wavesurfer.js allows you to customize media notifications by providing metadata for the media your web app is playing. It also allows you to handle media related events such as seeking or playback which may come from notifications or media keys.
Note: this plugin only works in Chrome 57 and newer (Firefox is working on it).
WaveSurfer instance and supply an object for the metadata propertyMediaSession instance| Name | Required | Default | Description |
|---|---|---|---|
wavesurfer |
yes | A WaveSurfer instance. | |
metadata |
yes | A MediaMetadata object: a representation of the metadata associated with a MediaSession that can be used by user agents to provide customized user interface. |