videojs / videojs-contrib-eme

Supports Encrypted Media Extensions for playback of encrypted content in Video.js
Other
200 stars 71 forks source link

fix: eventBus error after dispose #218

Closed adrums86 closed 3 months ago

adrums86 commented 4 months ago

fix an issue where the eventBus reference is destroyed before a keystatuseschange event is fired after a despose() call on the player.

dzianis-dashkevich commented 4 months ago

I assume, we should update all occurrences across the plugin

adrums86 commented 3 months ago

Fixed any other unsafe calls to eventBus.trigger and fixed remaining tests. Also update the lint standard to allow for use of the spread operator for objects.