Events

Events emitted by Threekit

Events

Player Events

There are three events that are triggered in turn as the player loads: preloaded, loaded, and rendered.

player.on('preloaded', () => {
  console.log('preloaded');
});

player.on('loaded', () => {
  console.log('loaded');
});

player.on('rendered', () => {
  console.log('rendered');
});

Configuration Event

When a configuration is set, an event is emitted.

player.on('setConfiguration', e => {
   console.log(e);
})