Docs sections
Search⌘KPlayer SDK
@dodocast/player is a library for your site and server: TypeScript, zero dependencies, MIT license.
bash
npm install @dodocast/player| Task | Functions | Where it works |
|---|---|---|
| Links and embeds | watchUrl(), embedUrl(), embedHtml(), mount() | browser, Node.js |
| Direct HLS links | streamUrl(): fMP4/CMAF, MPEG-TS, byte-range | Pro, Business |
| Channel data | getChannelState(), getChannelGuide(), progress() | published channels |
| Link signing | signToken(), signedStreamUrl(), signedPlaylistItemUrl() from @dodocast/player/server | Node.js 18+ |
Full reference and examples are on the Player SDK page, source code on GitHub, the package on npm.
Updated: