diff options
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/+video-watch/video-share.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/videos/shared/video.model.ts | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-share.component.ts b/client/src/app/videos/+video-watch/video-share.component.ts index 133f93498..414ed28c6 100644 --- a/client/src/app/videos/+video-watch/video-share.component.ts +++ b/client/src/app/videos/+video-watch/video-share.component.ts | |||
@@ -27,7 +27,7 @@ export class VideoShareComponent { | |||
27 | 27 | ||
28 | getVideoIframeCode () { | 28 | getVideoIframeCode () { |
29 | return '<iframe width="560" height="315" ' + | 29 | return '<iframe width="560" height="315" ' + |
30 | 'src="' + window.location.origin + '/videos/embed/' + this.video.uuid + '" ' + | 30 | 'src="' + this.video.embedUrl + '" ' + |
31 | 'frameborder="0" allowfullscreen>' + | 31 | 'frameborder="0" allowfullscreen>' + |
32 | '</iframe>' | 32 | '</iframe>' |
33 | } | 33 | } |
diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index b315e59b1..51c5319ea 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts | |||
@@ -26,6 +26,8 @@ export class Video implements VideoServerModel { | |||
26 | thumbnailUrl: string | 26 | thumbnailUrl: string |
27 | previewPath: string | 27 | previewPath: string |
28 | previewUrl: string | 28 | previewUrl: string |
29 | embedPath: string | ||
30 | embedUrl: string | ||
29 | views: number | 31 | views: number |
30 | likes: number | 32 | likes: number |
31 | dislikes: number | 33 | dislikes: number |
@@ -64,6 +66,7 @@ export class Video implements VideoServerModel { | |||
64 | tags: string[], | 66 | tags: string[], |
65 | thumbnailPath: string, | 67 | thumbnailPath: string, |
66 | previewPath: string, | 68 | previewPath: string, |
69 | embedPath: string, | ||
67 | views: number, | 70 | views: number, |
68 | likes: number, | 71 | likes: number, |
69 | dislikes: number, | 72 | dislikes: number, |
@@ -91,6 +94,8 @@ export class Video implements VideoServerModel { | |||
91 | this.thumbnailUrl = API_URL + hash.thumbnailPath | 94 | this.thumbnailUrl = API_URL + hash.thumbnailPath |
92 | this.previewPath = hash.previewPath | 95 | this.previewPath = hash.previewPath |
93 | this.previewUrl = API_URL + hash.previewPath | 96 | this.previewUrl = API_URL + hash.previewPath |
97 | this.embedPath = hash.embedPath | ||
98 | this.embedUrl = API_URL + hash.embedPath | ||
94 | this.views = hash.views | 99 | this.views = hash.views |
95 | this.likes = hash.likes | 100 | this.likes = hash.likes |
96 | this.dislikes = hash.dislikes | 101 | this.dislikes = hash.dislikes |