New player options:
- userInterfaceLanguage: Controls the locale of the user interface of the player.
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 whenPlayer.off
was called as it would remove the callback function from all events it was registered for instead of only the specified event.