ReferencePlayer
useOptionalContainer
Hook to access a Player container when one is available
Import
Usage
Use the optional hook when a component can work both inside and outside Player.
It returns null outside Player, before its container mounts, or when the player has no registered container. Use useContainer when a missing Player should be treated as an error.