mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
play monitoring improvement (#4670)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user