Skip to content

Commit

Permalink
play monitoring improvement (#4670)
Browse files Browse the repository at this point in the history
  • Loading branch information
cj12312021 committed Mar 12, 2024
1 parent 9f5b1c3 commit 3521dc1
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 3521dc1

Please sign in to comment.