ConstThe plugin publishes the first 1000 of its ranges; the player refuses a longer list whole.
import { TIMELINE_LIMITS } from "@vestra-player/sdk/testing";
// A longer list would be refused whole.
plugin.timeline.layer().setRanges(
segments
.slice(0, TIMELINE_LIMITS.ranges)
.map((s) => ({ ...s, style: "region" as const })),
);
The player's limits on one plugin's timeline layer (TimelineLayer). A list over them fails with code
invalid, reported toScope.onError(setandsetRangesnever throw). The player's tests check that these agree with the player.