aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-18 14:35:31 +0200
committerChocobozzz <me@florianbigard.com>2018-10-18 14:35:31 +0200
commitc199c427d4ae586339822320f20f512a7a19dc3f (patch)
tree9cbe8bebc25e97d2e8086c41bcd7180dd752dbac /client/src/standalone/videos/embed.ts
parentcdf4cb9eaf5f6bc71f7c1e1963c07575f1d2593d (diff)
downloadPeerTube-c199c427d4ae586339822320f20f512a7a19dc3f.tar.gz
PeerTube-c199c427d4ae586339822320f20f512a7a19dc3f.tar.zst
PeerTube-c199c427d4ae586339822320f20f512a7a19dc3f.zip
Better typings
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index e5a2d208a..7b269eeb9 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -17,7 +17,10 @@ import 'core-js/es6/set'
17// For google bot that uses Chrome 41 and does not understand fetch 17// For google bot that uses Chrome 41 and does not understand fetch
18import 'whatwg-fetch' 18import 'whatwg-fetch'
19 19
20const vjs = require('video.js') 20// FIXME: something weird with our path definition in tsconfig and typings
21// @ts-ignore
22import vjs from 'video.js'
23
21import * as Channel from 'jschannel' 24import * as Channel from 'jschannel'
22 25
23import { peertubeTranslate, ResultList, VideoDetails } from '../../../../shared' 26import { peertubeTranslate, ResultList, VideoDetails } from '../../../../shared'
@@ -304,7 +307,7 @@ class PeerTubeEmbed {
304 307
305 this.playerOptions = videojsOptions 308 this.playerOptions = videojsOptions
306 this.player = vjs(this.videoContainerId, videojsOptions, () => { 309 this.player = vjs(this.videoContainerId, videojsOptions, () => {
307 this.player.on('customError', (data: any) => this.handleError(data.err)) 310 this.player.on('customError', (event: any, data: any) => this.handleError(data.err))
308 311
309 window[ 'videojsPlayer' ] = this.player 312 window[ 'videojsPlayer' ] = this.player
310 313