Skip to content

API Reference

@ddgutierrezc/legato-contract defines the shared playback semantics used across Legato runtimes and consumers.

Use this section as the source of truth for transport-neutral types, event names, and error contracts.

PageDescription
TrackTrack and TrackType, including per-track headers scope.
Playback StatePLAYBACK_STATES and PlaybackState canonical runtime states.
SnapshotsPlaybackSnapshot and QueueSnapshot projections.
CapabilitiesCAPABILITIES and Capability runtime capability projections.
EventsCanonical event-name tuples and payload maps for player and remote events.
ErrorsLegatoError, LegatoErrorCode, and LEGATO_ERROR_CODES.
InvariantsPOSITION_MIN and LEGATO_INVARIANTS shared expectations.
Binding AdapterBindingAdapter runtime boundary and related option/snapshot types.