diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 0c0eaaa78..366e9bb57 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -295,6 +295,13 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
295 | return this.authService.isLoggedIn() | 295 | return this.authService.isLoggedIn() |
296 | } | 296 | } |
297 | 297 | ||
298 | getVideoUrl () { | ||
299 | if (!this.video.url) { | ||
300 | return this.video.originInstanceUrl + VideoDetails.buildClientUrl(this.video.uuid) | ||
301 | } | ||
302 | return this.video.url | ||
303 | } | ||
304 | |||
298 | getVideoTags () { | 305 | getVideoTags () { |
299 | if (!this.video || Array.isArray(this.video.tags) === false) return [] | 306 | if (!this.video || Array.isArray(this.video.tags) === false) return [] |
300 | 307 | ||