diff options
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index f2f339bcc..f696df968 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -3,9 +3,9 @@ import './embed.scss' | |||
3 | import videojs from 'video.js' | 3 | import videojs from 'video.js' |
4 | import '../../assets/player/peertube-videojs-plugin' | 4 | import '../../assets/player/peertube-videojs-plugin' |
5 | import 'videojs-dock/dist/videojs-dock.es.js' | 5 | import 'videojs-dock/dist/videojs-dock.es.js' |
6 | import { Video } from '../../../../shared' | 6 | import { VideoDetails } from '../../../../shared' |
7 | 7 | ||
8 | function loadVideoInfo (videoId: string, callback: (err: Error, res?: Video) => void) { | 8 | function loadVideoInfo (videoId: string, callback: (err: Error, res?: VideoDetails) => void) { |
9 | const xhttp = new XMLHttpRequest() | 9 | const xhttp = new XMLHttpRequest() |
10 | xhttp.onreadystatechange = function () { | 10 | xhttp.onreadystatechange = function () { |
11 | if (this.readyState === 4 && this.status === 200) { | 11 | if (this.readyState === 4 && this.status === 200) { |