mirror of
https://github.com/stashapp/stash.git
synced 2025-12-24 09:12:39 +01:00
play monitoring improvement (#4670)
This commit is contained in:
parent
9f5b1c33f6
commit
3521dc133e
1 changed files with 9 additions and 1 deletions
|
|
@ -25,10 +25,18 @@ class TrackActivityPlugin extends videojs.getPlugin("plugin") {
|
|||
constructor(player: VideoJsPlayer) {
|
||||
super(player);
|
||||
|
||||
player.on("play", () => {
|
||||
player.on("playing", () => {
|
||||
this.start();
|
||||
});
|
||||
|
||||
player.on("waiting", () => {
|
||||
this.stop();
|
||||
});
|
||||
|
||||
player.on("stalled", () => {
|
||||
this.stop();
|
||||
});
|
||||
|
||||
player.on("pause", () => {
|
||||
this.stop();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue