diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-08-25 11:36:23 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-08-25 11:36:23 +0200 |
commit | 93e1258c7cbc0d1235ca6d2a1f7c1875985328b8 (patch) | |
tree | b0a1f77af7ab54dc5f58f569fcd1e9d84b04c533 /client/src/standalone/videos | |
parent | 69f224587e99d56008e1fa129d0641840a486620 (diff) | |
download | PeerTube-93e1258c7cbc0d1235ca6d2a1f7c1875985328b8.tar.gz PeerTube-93e1258c7cbc0d1235ca6d2a1f7c1875985328b8.tar.zst PeerTube-93e1258c7cbc0d1235ca6d2a1f7c1875985328b8.zip |
Move video file metadata in their own table
Will be used for user video quotas and multiple video resolutions
Diffstat (limited to 'client/src/standalone/videos')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 64a0f0798..0698344b0 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -57,7 +57,11 @@ loadVideoInfos(videoId, (err, videoInfos) => { | |||
57 | return | 57 | return |
58 | } | 58 | } |
59 | 59 | ||
60 | const magnetUri = videoInfos.magnetUri | 60 | let magnetUri = '' |
61 | if (videoInfos.files !== undefined && videoInfos.files.length !== 0) { | ||
62 | magnetUri = videoInfos.files[0].magnetUri | ||
63 | } | ||
64 | |||
61 | const videoContainer = document.getElementById('video-container') as HTMLVideoElement | 65 | const videoContainer = document.getElementById('video-container') as HTMLVideoElement |
62 | const previewUrl = window.location.origin + videoInfos.previewPath | 66 | const previewUrl = window.location.origin + videoInfos.previewPath |
63 | videoContainer.poster = previewUrl | 67 | videoContainer.poster = previewUrl |