Skip to content

Headless playback Preact

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

useSocialPlayer - 914 B

Basic Usage

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

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