diff options
Diffstat (limited to 'client/src/assets/player/shared/peertube')
-rw-r--r-- | client/src/assets/player/shared/peertube/peertube-plugin.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts index 69a7b2d65..83c32415e 100644 --- a/client/src/assets/player/shared/peertube/peertube-plugin.ts +++ b/client/src/assets/player/shared/peertube/peertube-plugin.ts | |||
@@ -144,6 +144,8 @@ class PeerTubePlugin extends Plugin { | |||
144 | this.listenFullScreenChange() | 144 | this.listenFullScreenChange() |
145 | } | 145 | } |
146 | 146 | ||
147 | // --------------------------------------------------------------------------- | ||
148 | |||
147 | private runUserViewing () { | 149 | private runUserViewing () { |
148 | let lastCurrentTime = this.startTime | 150 | let lastCurrentTime = this.startTime |
149 | let lastViewEvent: VideoViewEvent | 151 | let lastViewEvent: VideoViewEvent |
@@ -205,6 +207,8 @@ class PeerTubePlugin extends Plugin { | |||
205 | return fetch(this.videoViewUrl, { method: 'POST', body: JSON.stringify(body), headers }) | 207 | return fetch(this.videoViewUrl, { method: 'POST', body: JSON.stringify(body), headers }) |
206 | } | 208 | } |
207 | 209 | ||
210 | // --------------------------------------------------------------------------- | ||
211 | |||
208 | private listenFullScreenChange () { | 212 | private listenFullScreenChange () { |
209 | this.player.on('fullscreenchange', () => { | 213 | this.player.on('fullscreenchange', () => { |
210 | if (this.player.isFullscreen()) this.player.focus() | 214 | if (this.player.isFullscreen()) this.player.focus() |