Skip to content

Headless playback Svelte ​

The @headlessplayback/svelte adapter is a wrapper around the core API.

usePlayback - 1.73 KB ​

Basic Usage ​

ts
function usePlayback(arg: { id: string }): {
  activate
  playbackActions
  playbackState
}

usePlayback.use(plugin, {
  /* Your plugin config */
})