Skip to content

Commit

Permalink
only set poster live update interval when greater than 0 (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
wes337 authored Nov 11, 2024
1 parent 835d48f commit d47769d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sweet-readers-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livepeer/core-web": patch
---

only set poster live update interval when greater than 0
2 changes: 1 addition & 1 deletion packages/core-web/src/media/controls/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ const addEffectsToStore = (
async ({ thumbnail, live, setPoster, posterLiveUpdate }) => {
cleanupPosterImage?.();

if (thumbnail && live) {
if (thumbnail && live && posterLiveUpdate > 0) {
const interval = setInterval(() => {
const thumbnailUrl = new URL(thumbnail);

Expand Down

0 comments on commit d47769d

Please sign in to comment.