mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
trigger play count on player ended (#6334)
This commit is contained in:
parent
88747b962a
commit
7e66ce8a49
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ class TrackActivityPlugin extends videojs.getPlugin("plugin") {
|
||||||
player.on("dispose", () => {
|
player.on("dispose", () => {
|
||||||
this.stop();
|
this.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
player.on("ended", () => {
|
||||||
|
this.stop();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private start() {
|
private start() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue