Files
video.js-mirror/packages/spf/docs/reference/features/error.md

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

  1. collectErrors

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

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