Skip to content

Commit

Permalink
Remove mistakenly committed code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Mar 4, 2024
1 parent c985211 commit 2ac1f56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/components/ft-video-player/ft-video-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ export default defineComponent({

this.stopPowerSaveBlocker()
})

this.player.on(this.statsModalEventName, () => {
if (this.showStatsModal) {
this.statsModal.open()
Expand Down Expand Up @@ -990,11 +991,10 @@ export default defineComponent({
this.player.one('canplay', () => {
this.player.currentTime(currentTime)
this.player.playbackRate(playbackRate)
this.$refs.video.addEventListener('loadeddata', () => {
// need to call play to restore the player state, even if we want to pause afterwards
this.playVideo(() => {
if (isPaused) { this.player.pause() }
})

// need to call play to restore the player state, even if we want to pause afterwards
this.playVideo(() => {
if (isPaused) { this.player.pause() }
})
})

Expand Down

0 comments on commit 2ac1f56

Please sign in to comment.