Example · Hybrid source

A public player without exposing the private codec.

The example keeps the player and codec in separate Source Spaces. The public build contains the player only. The owner decides whether that projection is functionally complete.

Run it

Shell
cd examples/hybrid-video-player
npm install
npm run check

What to inspect

Public Source Spacepublic-player/src/index.ts

Included in dist/public-player.js.

Private Source Spaceprivate-codec/src/codec.ts

Never copied into the public projection.

Other examplesWorker app ↗TypeScript CLI ↗