Skip to content

Commit

Permalink
Merge pull request #787 from FlaminSarge/live-rewind-multiview
Browse files Browse the repository at this point in the history
Use 200ms delay before showing multiview cell edit UI for YT players with allowLiveDvr enabled
  • Loading branch information
sphinxrave authored Dec 29, 2024
2 parents a76bdd4 + 0848cff commit 787882c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/multiview/VideoCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default {
}
},
onPlayPause(paused = false) {
if (this.ytPlayer && this.video.status === "past") {
if (this.ytPlayer && (!this.ytPlayer.getVideoData().isLive || this.ytPlayer.getVideoData().allowLiveDvr)) {
setTimeout(() => {
const recheck = this.ytPlayer.getPlayerState() === 2;
this.updatePausedState(recheck);
Expand Down

0 comments on commit 787882c

Please sign in to comment.