From 2ce2fd7f450ec7e5c00af7ee445226df7d19a880 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Jun 2018 10:37:13 +0200 Subject: Improve player progress bar --- client/src/assets/player/peertube-videojs-plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/assets') diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index e68d79e40..f303301d5 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -7,7 +7,7 @@ import { PeertubePluginOptions, VideoJSComponentInterface, videojsUntyped } from import { getAverageBandwidth, getStoredMute, - getStoredVolume, + getStoredVolume, isMobile, saveAverageBandwidth, saveMuteInStore, saveVolumeInStore, @@ -366,6 +366,8 @@ class PeerTubePlugin extends Plugin { } private initializePlayer () { + if (isMobile()) this.player.addClass('vjs-is-mobile') + this.initSmoothProgressBar() this.alterInactivity() -- cgit v1.2.3