trigger play count on player ended (#6334)

This commit is contained in:
feederbox826 2025-11-27 19:56:54 -05:00 committed by GitHub
parent 88747b962a
commit 7e66ce8a49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,10 @@ class TrackActivityPlugin extends videojs.getPlugin("plugin") {
player.on("dispose", () => {
this.stop();
});
player.on("ended", () => {
this.stop();
});
}
private start() {