StreamSwitchHardSettings.onInboundContextChange property
Callback to be called when inbound context changes on some input; presence of an input means that media has arrived and is ready to switch immediately
Note that in combination with StreamSwitchHardSettings.bufferDelayMs this event represents the delayed media context (i.e. still ready to switch immediately according to this context, but any observation of early changes must happen upstream).
Signature:
onInboundContextChange?: (allStreams: Map<Pins, StreamMetadata[]>) => Promise<void>;