@videogen/player
v0.1.4
Published
Official VideoGen video player for the web. Lightweight wrapper with built-in branding.
Downloads
42
Readme
@videogen/player
Official VideoGen video player for the web. A lightweight wrapper that decodes VideoGen public playback IDs and renders a branded player.
Installation
npm i @videogen/playerUsage
import { createVideoGenPlayer } from "@videogen/player";
const container = document.getElementById("player-container");
createVideoGenPlayer(container, {
publicPlaybackId: "vg_play_...", // from the VideoGen API
});Configuration
| Option | Type | Description |
| --- | --- | --- |
| publicPlaybackId | string | Required. Encoded playback ID from the VideoGen API. |
| autoplay | boolean | Start playback automatically. |
| muted | boolean | Start muted. |
| loop | boolean | Loop playback. |
| poster | string | Poster image URL shown before playback. |
| thumbnailTime | number | Time (seconds) to use as the poster frame. |
| startTime | number | Time (seconds) to start playback from. |
Documentation
Full API documentation is available at videogen.docs.buildwithfern.com/embedding-videos.
