Skip to content

v0.3.3

Latest
Compare
Choose a tag to compare
@niklaskorz niklaskorz released this 01 Feb 13:45
· 4 commits to main since this release

New player options:

New events:

  • ResetReady: Triggered when the player was reset, for example, when a new video of a watchlist has started to load.
  • VideoLoading: Triggered when the video has started to load. This may happen more than once if a watchlist is specified.

Fixes:

  • Events are now triggered correctly when watchlists are used and another video is loaded.
  • Commands that were issued while a new video of a watchlist is loading are now enqueued and executed once the new video is ready.
  • One function can now be used to handle multiple events by calling Player.on multiple times, using different event names but the same callback function. Previously, this caused issues when Player.off was called as it would remove the callback function from all events it was registered for instead of only the specified event.