Configuration
How to configure the PanelWave Player — component inputs set by the integrator versus settings the manifest itself provides.
Player behavior is configured on two levels:
- Integrator inputs on
pw-player-shell— set in your template, per embed. - Manifest settings — authored into the work (
settings,tracking,uisections), so the same embed behaves per-work.
When both exist for the same concern, the component input represents the reader/integrator side (e.g. the initial locale), while the manifest declares the creator's defaults.
Component inputs (pw-player-shell)
These are all the @Input()s the shell accepts (verified in PlayerShellComponent). They may change after the shell has initialized: a new manifestUrl / manifest reloads the work (re-reading the initial position, initialVariables and entitlement inputs), a new entitlementSnapshot re-evaluates the paywall, and locale, viewModeOverride, pageFormat, showToolbar, autoplay, secondsPerPanel and reducedMotion apply live (showCover is read when a work loads). Details: Inputs & Outputs.
| Input | Type | Default | Purpose |
|---|---|---|---|
manifestUrl | string | — | URL of the manifest to load (fetched with HttpClient). Wins over manifest when both are set. |
manifest | PanelWaveManifest | — | The manifest object, when you load or transform the JSON yourself. |
locale | LocaleCode | 'en-US' | Content locale (BCP-47). Also sets the player UI language (mapped to its base language). |
initialChapterId | string | — | Start at this chapter instead of the first one (or the reader's bookmark). |
initialPanelId | string | — | Start at this panel (requires initialChapterId). |
initialVariables | Record<string, unknown> | — | Seed story variables once at start; may set readOnly variables (e.g. a verified user.age). |
showToolbar | boolean | false | Show the toolbar. Readers can always toggle it (T, floating button, viewport click). |
viewModeOverride | 'auto' | 'panel' | 'canvas' | 'auto' | Force panel or canvas view. |
pageFormat | 'auto' | OutputFormat | 'auto' | From player 1.3.0. Which page sequence page view shows: 'auto' picks the authored output format that suits the screen (phone → mobile-portrait, 4K → bigscreen-landscape, …) and re-picks on resize; a format id forces that sequence when the work has pages for it. |
showCover | boolean | true | From player 1.3.0. Open on the work's cover (meta.cover, else extras.cover) when reading starts at the beginning; the cover also heads the thumbnail strip and the table of contents. |
reducedMotion | boolean | false | Force reduced motion. The OS prefers-reduced-motion setting and the reader's Settings switch also turn it on. |
secondsPerPanel | number | 5 | Autoplay dwell time per panel when the panel has no own durationMs (and for the cover). Reader-adjustable in the toolbar (0.5–120 s); from player 1.3.0 a speed the reader picks applies to every panel until they switch back to the author's timing. From the same release, autoplay in panel and canvas view waits for a non-looping panel animation to finish. |
autoplay | boolean | false | Start in autoplay once the work is ready; the reader's toolbar toggle takes over afterwards. |
entitlementSnapshot | EntitlementSnapshot | anonymous | What the reader owns; evaluated against the manifest's paywall.rules. See Paywall & Entitlement. |
entitlementEndpoint / readerToken | string | — | Let the player fetch the snapshot itself ({workId} is substituted; token sent as a Bearer header). |
entitlementAdapter | shell adapter | — | Lower-level per-panel access check that replaces the manifest rules. It gates navigation only, not rendering — don't rely on it to hide content; see Custom access checks. |
Example with several inputs:
<pw-player-shell
manifestUrl="/stories/my-story/panelwave.json"
locale="de-DE"
[initialChapterId]="'ch-2'"
[secondsPerPanel]="8"
[reducedMotion]="prefersCalm"
[showToolbar]="true"
[entitlementSnapshot]="snapshot">
</pw-player-shell>
For the outputs and public methods, see Inputs & Outputs.
The public API also exports a PlayerOptions interface (allowComments, allowSocial, theme, debug, className, enableKeyboard, enableTouch). It is a type-level definition for future use — the shell does not currently consume it. Configure the player through the inputs above.
Manifest-driven settings
The manifest sections below shape player behavior. They are authored by the creator (in the CMS or by hand) — see the schema settings reference for the authoritative property list.
settings.ui — reader-experience defaults (UIDefaults)
| Property | Type | Meaning |
|---|---|---|
mangaMode | boolean | Right-to-left reading by default |
autoplayDefault | boolean | Autoplay enabled by default |
secondsPerPanel | number | Default autoplay dwell time |
speechDefault / audioDefault / sfxDefault | boolean | Default toggle states for speech bubbles, audio, SFX — applied (a preference the reader set explicitly wins). speechDefault implicitly gates every bubble (schema 1.3) |
voicesDefault | boolean | Spoken lines (speech-bubble audio and voiceover tracks) on by default — applied (format 1.12, default off) |
scrollingDefault | boolean | Scrolling mode by default |
videoPlayModeDefault | VideoPlayMode | Work-level default for video layers (once if absent) — applied |
videoStartModeDefault | VideoStartMode | Work-level default start trigger (on-view if absent) — applied |
videoMutedDefault | boolean | Work-level default muted state (true if absent) — applied |
In the current build the shell applies the three video defaults (they cascade into every video layer via resolveVideoConfig) and speechDefault / audioDefault / sfxDefault / voicesDefault (they seed the four sound toggles unless the reader set them). autoplayDefault, secondsPerPanel, mangaMode and scrollingDefault are declared in the type but not yet read at startup — treat those as forward-looking manifest data.
settings.typography.balloon_config
Work-level default styling for all speech bubbles (BalloonConfig): balloon type, corner radius, font family/size, stroke and fill colors, tail geometry, hide-border effect. The player merges this with per-character, per-preset (styleRef, schema 1.3+), and per-bubble overrides via mergeBalloonConfig — see Speech Bubbles and Balloon Renderer.
settings.typography.textStyles and balloonPresets (schema 1.3+)
Named, reusable style presets. Text layers resolve styleRef against textStyles in the layer renderer (inline style fields win); speech bubbles resolve styleRef against balloonPresets inside the balloon cascade. Unknown styleRefs are ignored. See Settings.
settings.preload
Preload strategy hints: strategy (none | lookahead | aggressive), panelsAhead (default 2), maxConcurrent (default 4). The preload/image-cache services expose matching knobs (PreloadService.setMaxConcurrent, network-aware mode); see Performance.
tracking
Fully wired: on load, the shell configures the TrackingService from tracking.consent.required (default true), tracking.consent.defaultOptIn, tracking.eventWhitelist, and tracking.endpoint. Details on Tracking.
paywall
paywall.rules declare which parts of the work require a subscription, a purchase or a minimum age, and how many preview panels are free. The player evaluates them against the entitlement snapshot you supply and shows the paywall overlay or age gate at a locked panel — see Paywall & Entitlement for exactly which rule fields are honoured.
ui (top-level UISettings)
Branding (primaryColor, accentColor, logo), the widget theme (theme, 1.10 — see Widget theme) and control visibility (showLanguageToggle, showAutoplayToggle, showSfxToggle). Declared in the manifest type; the current toolbar shows its standard control set and hides the language button automatically when the work has a single locale.
Widget theme
From player 1.10.0, ThemeService (provided by the shell) styles the content widgets, the video modal, the action modal, hotspot choice buttons, the branch chooser and toasts. It resolves
built-in defaults for mode → derived from ui.branding → ui.theme → themeOverride input
and writes the result as --pw-theme-* custom properties into a zero-specificity rule for the player instance, so any host rule wins:
pw-player-shell {
--pw-theme-accent: #e11d48;
--pw-theme-font-ui: 'Inter', system-ui, sans-serif;
}
| Property | From |
|---|---|
--pw-theme-surface, -on-surface, -surface-muted, -on-surface-muted | colors.* (surface also from branding.primaryColor; readable text derived) |
--pw-theme-accent, -on-accent | colors.accent / branding.accentColor |
--pw-theme-border, -focus, -track, -progress, -waveform, -waveform-progress, -link, -backdrop | colors.* |
--pw-theme-font-ui, --pw-theme-font-body | fonts.ui / fonts.body (family + fallback) |
--pw-theme-radius, --pw-theme-border-width, --pw-theme-shadow | shape.* |
--pw-theme-density | density (1 / 0.85) |
mode: "auto" follows prefers-color-scheme live. Fonts are not downloaded from the manifest — the host page provides them, otherwise the fallback applies. A layer's themeOverrides sets the colour properties on that widget only. Change the theme at runtime with the themeOverride input, setThemeOverride(), or the embed protocol's setTheme message (v3).
Selected hotspots
A hotspot the reader picked is drawn with an outline and a check badge. From player 2.3.0 it has its own colour, independent of the theme, so a red accent no longer makes the selection look like an error (2.2.0 used --pw-theme-accent):
| Property | Default | Used for |
|---|---|---|
--pw-hotspot-selected | #2563eb (blue) | Outline, area tint and badge of a selected hotspot |
--pw-hotspot-on-selected | #ffffff | The check mark on the badge |
The overlay only reads the two properties and falls back to the defaults, so set your own like the --pw-theme-* properties — on pw-player-shell or any ancestor:
pw-player-shell {
--pw-hotspot-selected: #16a34a;
--pw-hotspot-on-selected: #ffffff;
}
Per-panel configuration
Individual panels can carry behavior that overrides globals:
durationMs— autoplay dwell time for that panel (takes precedence oversecondsPerPaneluntil the reader picks a speed in the toolbar; in page view, from player 1.3.0, a page stays for the sum of its panels' times)."x-locked": true(format 1.7) — a server-stripped panel: rendered as a locked placeholder whatever the paywall rules say.- Video layers can override
playMode,startMode,mutedper layer (cascade: layer →settings.uidefaults → built-in defaults). formatViews— which view modes a panel allows per output format.
Precedence summary
Built-in defaults are overridden by the work's manifest, which the integrator can override per embed, and readers have the last word for their own session via the toolbar and settings modal.