diff options
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index ac8134fa8..6b6c1e581 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -21,6 +21,7 @@ import './videojs-components/settings-panel' | |||
21 | import './videojs-components/settings-panel-child' | 21 | import './videojs-components/settings-panel-child' |
22 | import './videojs-components/theater-button' | 22 | import './videojs-components/theater-button' |
23 | import './playlist/playlist-plugin' | 23 | import './playlist/playlist-plugin' |
24 | import './mobile/peertube-mobile-plugin' | ||
24 | import videojs from 'video.js' | 25 | import videojs from 'video.js' |
25 | import { HlsJsEngineSettings } from '@peertube/p2p-media-loader-hlsjs' | 26 | import { HlsJsEngineSettings } from '@peertube/p2p-media-loader-hlsjs' |
26 | import { PluginsManager } from '@root-helpers/plugins-manager' | 27 | import { PluginsManager } from '@root-helpers/plugins-manager' |
@@ -43,7 +44,7 @@ import { | |||
43 | VideoJSPluginOptions | 44 | VideoJSPluginOptions |
44 | } from './peertube-videojs-typings' | 45 | } from './peertube-videojs-typings' |
45 | import { TranslationsManager } from './translations-manager' | 46 | import { TranslationsManager } from './translations-manager' |
46 | import { buildVideoOrPlaylistEmbed, getRtcConfig, isIOS, isSafari } from './utils' | 47 | import { buildVideoOrPlaylistEmbed, getRtcConfig, isIOS, isMobile, isSafari } from './utils' |
47 | 48 | ||
48 | // Change 'Playback Rate' to 'Speed' (smaller for our settings menu) | 49 | // Change 'Playback Rate' to 'Speed' (smaller for our settings menu) |
49 | (videojs.getComponent('PlaybackRateMenuButton') as any).prototype.controlText_ = 'Speed' | 50 | (videojs.getComponent('PlaybackRateMenuButton') as any).prototype.controlText_ = 'Speed' |
@@ -189,7 +190,10 @@ export class PeertubePlayerManager { | |||
189 | videoEmbedTitle: options.common.embedTitle | 190 | videoEmbedTitle: options.common.embedTitle |
190 | }) | 191 | }) |
191 | 192 | ||
193 | if (isMobile()) player.peertubeMobile() | ||
194 | |||
192 | player.bezels() | 195 | player.bezels() |
196 | |||
193 | player.stats({ | 197 | player.stats({ |
194 | videoUUID: options.common.videoUUID, | 198 | videoUUID: options.common.videoUUID, |
195 | videoIsLive: options.common.isLive, | 199 | videoIsLive: options.common.isLive, |