Skip to main content

Interface: SourceDescription

Everything needed to load one source into the player, passed to EvePlayer.setSource.

Properties​

poster?​

optional poster?: string

Poster image URL shown before playback starts.


sources​

sources: SourceItem[]

One or more renditions of the same content, in preference order. Pass an empty array for a poster-only / no-video state; .src() is skipped instead of raising a "source not supported" error.


textTracks?​

optional textTracks?: SourceTextTrack[]

Side-loaded text tracks (e.g. a chapters WebVTT file) added via addRemoteTextTrack on setSource(). Cleared automatically on the next setSource() call.