Skip to content

Commit

Permalink
play monitoring improvement (stashapp#4670)
Browse files Browse the repository at this point in the history
  • Loading branch information
cj12312021 authored and halkeye committed Sep 1, 2024
1 parent affacd3 commit cc58ece
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ui/v2.5/src/components/ScenePlayer/track-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit cc58ece

Please sign in to comment.