diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-25 16:43:19 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 09:11:38 +0200 |
commit | 404b54e14f6623c1644a8c87ca22f4bab98d5484 (patch) | |
tree | 5fbe6cb637f35abae08e4c98a537447cbf4607d6 /client/src/standalone/videos/embed.ts | |
parent | f5028693a896a3076dd286ac0030e3d8f78f5ebf (diff) | |
download | PeerTube-404b54e14f6623c1644a8c87ca22f4bab98d5484.tar.gz PeerTube-404b54e14f6623c1644a8c87ca22f4bab98d5484.tar.zst PeerTube-404b54e14f6623c1644a8c87ca22f4bab98d5484.zip |
Adapt client with video channels
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) { |