diff options
Diffstat (limited to 'client/src/assets/player/peertube-plugin.ts')
-rw-r--r-- | client/src/assets/player/peertube-plugin.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-plugin.ts b/client/src/assets/player/peertube-plugin.ts index fd612dd4f..b5c42d1c5 100644 --- a/client/src/assets/player/peertube-plugin.ts +++ b/client/src/assets/player/peertube-plugin.ts | |||
@@ -122,6 +122,14 @@ class PeerTubePlugin extends Plugin { | |||
122 | this.alterInactivity() | 122 | this.alterInactivity() |
123 | } | 123 | } |
124 | 124 | ||
125 | displayFatalError () { | ||
126 | this.player.addClass('vjs-error-display-enabled') | ||
127 | } | ||
128 | |||
129 | hideFatalError () { | ||
130 | this.player.removeClass('vjs-error-display-enabled') | ||
131 | } | ||
132 | |||
125 | private initializePlayer () { | 133 | private initializePlayer () { |
126 | if (isMobile()) this.player.addClass('vjs-is-mobile') | 134 | if (isMobile()) this.player.addClass('vjs-is-mobile') |
127 | 135 | ||