mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
play monitoring improvement (#4670)
This commit is contained in:
@@ -25,10 +25,18 @@ class TrackActivityPlugin extends videojs.getPlugin("plugin") {
|
|||||||
constructor(player: VideoJsPlayer) {
|
constructor(player: VideoJsPlayer) {
|
||||||
super(player);
|
super(player);
|
||||||
|
|
||||||
player.on("play", () => {
|
player.on("playing", () => {
|
||||||
this.start();
|
this.start();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
player.on("waiting", () => {
|
||||||
|
this.stop();
|
||||||
|
});
|
||||||
|
|
||||||
|
player.on("stalled", () => {
|
||||||
|
this.stop();
|
||||||
|
});
|
||||||
|
|
||||||
player.on("pause", () => {
|
player.on("pause", () => {
|
||||||
this.stop();
|
this.stop();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user