mirror of
https://github.com/videojs/video.js.git
synced 2026-11-20 06:29:27 +01:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
3.0 KiB
3.0 KiB
@videojs/spf/features/error
Source: src/playback/features/error.ts
errorFeature
Collects the errors the other features report into state.errors, per source. Without it, reporting is a no-op.
Behaviors
State
| Key | Type | Initial | Declared by | Doc |
|---|---|---|---|---|
errors |
SvtaError[] | undefined |
— | collectErrors | Conditions reported during playback, in the order encountered — appended by whichever behavior detects one (emitError), owned and cleared per source by collectErrors. Carries no severity: which of these is fatal is decided above the engine, at the adapter. See internal/design/spf/features/errors.md. |
presentation |
MaybeResolvedPresentation | undefined |
— | collectErrors | The presentation being played. A caller writes { url }; resolvePresentation parses the manifest and populates the rest. (documented on resolvePresentation) |
Composed by
- @videojs/spf/engines/hls-video
- @videojs/spf/engines/hls-audio
- @videojs/spf/engines/hls-background-video
- @videojs/spf/engines/hls-video-mpeg-ts
- @videojs/spf/engines/hls-audio-mpeg-ts
- @videojs/spf/engines/hls-background-video-mpeg-ts
Other functions and constants
| Name | Kind | Description | Source |
|---|---|---|---|
behaviors |
const | The behaviors the feature composes, in setup order. Listed under Behaviors. | src/playback/features/error.ts |
defaultConfig |
const | The config defaults the feature contributes. It contributes none ({}). |
src/playback/features/error.ts |
initialState |
const | The state values the feature seeds. It seeds none ({}). |
src/playback/features/error.ts |
Types
| Name | Kind | Description | Source |
|---|---|---|---|
Behaviors |
type | The type of behaviors. |
src/playback/features/error.ts |
Config |
type | Every config key the behaviors read. | src/playback/features/error.ts |
Context |
type | Every context key the behaviors declare. | src/playback/features/error.ts |
State |
type | Every state key the behaviors and external signals declare. Listed under State. | src/playback/features/error.ts |