StreamSwitchSmoothSettings.onSourceEnded property
Called when a source’s streams disappear on a pin (e.g. file ended). This callback blocks context propagation - use it to set up the next source before returning.
Signature:
onSourceEnded?: (pin: Pins) => Promise<{
release?: Pins;
} | void>;