diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-27 14:44:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-27 14:44:34 +0200 |
commit | 39c0ceee8b6e7fab441dea1ad1699fe8d18f3b27 (patch) | |
tree | 1c0c3e51036f35b0efa797cbaea33fa3fa50ca8c /client/src/assets/player/shared/web-video | |
parent | 9dfbf73576fdcc40d5dc956c5fe56e0dffe44ca8 (diff) | |
download | PeerTube-39c0ceee8b6e7fab441dea1ad1699fe8d18f3b27.tar.gz PeerTube-39c0ceee8b6e7fab441dea1ad1699fe8d18f3b27.tar.zst PeerTube-39c0ceee8b6e7fab441dea1ad1699fe8d18f3b27.zip |
Fix player error modal
Not hidden when we change the video
Diffstat (limited to 'client/src/assets/player/shared/web-video')
-rw-r--r-- | client/src/assets/player/shared/web-video/web-video-plugin.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/assets/player/shared/web-video/web-video-plugin.ts b/client/src/assets/player/shared/web-video/web-video-plugin.ts index d09b5a724..b839062f2 100644 --- a/client/src/assets/player/shared/web-video/web-video-plugin.ts +++ b/client/src/assets/player/shared/web-video/web-video-plugin.ts | |||
@@ -65,9 +65,10 @@ class WebVideoPlugin extends Plugin { | |||
65 | const playbackRate = this.player.playbackRate() | 65 | const playbackRate = this.player.playbackRate() |
66 | const currentTime = this.player.currentTime() | 66 | const currentTime = this.player.currentTime() |
67 | 67 | ||
68 | // Enable error display now this is our last fallback | 68 | if (!this.onErrorHandler) { |
69 | this.onErrorHandler = () => this.player.peertube().displayFatalError() | 69 | this.onErrorHandler = () => this.player.peertube().displayFatalError() |
70 | this.player.one('error', this.onErrorHandler) | 70 | this.player.one('error', this.onErrorHandler) |
71 | } | ||
71 | 72 | ||
72 | let httpUrl = this.currentVideoFile.fileUrl | 73 | let httpUrl = this.currentVideoFile.fileUrl |
73 | 74 | ||