Skip to content

Headless playback Svelte

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

useSocialPlayer - 215 B

Basic Usage

ts
import { useSocialPlayer } from "@socialplayer/svelte"
useSocialPlayer.use(plugin)

const { playbackActions } = useSocialPlayer({
  id: "video-id",
})