Change in the Video Provider loading state.
It is emitted when the component's loading state changes.
Event: changeLoading
changeLoading
Type: FacephiVideoProviderCustomEvent<boolean> | CustomEvent<boolean>
FacephiVideoProviderCustomEvent<boolean>
CustomEvent<boolean>
video.addEventListener('changeLoading', onChangeLoading);
detail: boolean
Indicates whether the Video Provider is still loading. Do not initialize child widgets until detail it is false.
detail
false
In remote integrations (ws / sse), wait for this event before mounting Selphi, SelphID, or other widgets within the provider.
ws
sse
Last updated 1 month ago
<facephi-video-provider settings={{ serviceType: 'ws' }} onChangeLoading={(event) => { if (!event.detail) { // Inicializar widgets } }} />