Some use cases for providing your own player factory:
Consider abandoning the use of defineElement due to the potential redundancy of default triggers. In this case, assign the player factory before defining the custom element.
Enables the provision of a custom (user-defined) player implementation.
Example:
importlottiefrom'lottie-web'; import { Element, Player } from'@lordicon/element';
Defines the callback that will create a player instance on demand for the Element.
Some use cases for providing your own player factory:
Example: