Register the overlay's component.
Add it to any entity, once per scene: the dots go on the scene's camera, whichever entity carries the component.
el.setAttribute(BUFFERING_OVERLAY_COMPONENT, { player, xr });
Its colours are read from the page's theme when it is built; re-add it to pick up a new one.
Register the overlay's component.
Add it to any entity, once per scene: the dots go on the scene's camera, whichever entity carries the component.
el.setAttribute(BUFFERING_OVERLAY_COMPONENT, { player, xr });
Its colours are read from the page's theme when it is built; re-add it to pick up a new one.