Docs sections
Search⌘KPlayer SDK
If your site builds its own pages, use @dodocast/player — links, embeds and channel data, each with a single function.
bash
npm install @dodocast/playerjs
import { mount } from '@dodocast/player'
mount('#player', { kind: 'video', code: 'abc123XYZ0', start: 90 })| Task | Functions |
|---|---|
| Links and embedding | watchUrl(), embedUrl(), embedHtml(), mount() |
| Direct HLS links (Pro, Business) | streamUrl() |
| 24/7 channel data | getChannelState(), getChannelGuide(), progress() |
| Signed links (server-side, Node.js 18+) | signToken(), signedStreamUrl(), signedPlaylistItemUrl() |
embedHtml() returns the same markup as the Embed button in the console. More details and examples: Player SDK · GitHub · npm. MIT license.
Updated: