From d8755eed1e452d2efbfc983af0e9d228d152bf6b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 16 Oct 2017 10:05:49 +0200 Subject: Add oembed endpoint --- client/src/app/videos/+video-watch/video-share.component.ts | 2 +- client/src/app/videos/shared/video.model.ts | 5 +++++ client/src/index.html | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'client') 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 { getVideoIframeCode () { return '' } 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 { thumbnailUrl: string previewPath: string previewUrl: string + embedPath: string + embedUrl: string views: number likes: number dislikes: number @@ -64,6 +66,7 @@ export class Video implements VideoServerModel { tags: string[], thumbnailPath: string, previewPath: string, + embedPath: string, views: number, likes: number, dislikes: number, @@ -91,6 +94,8 @@ export class Video implements VideoServerModel { this.thumbnailUrl = API_URL + hash.thumbnailPath this.previewPath = hash.previewPath this.previewUrl = API_URL + hash.previewPath + this.embedPath = hash.embedPath + this.embedUrl = API_URL + hash.embedPath this.views = hash.views this.likes = hash.likes this.dislikes = hash.dislikes diff --git a/client/src/index.html b/client/src/index.html index 91ed04d17..8e94b903d 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -7,8 +7,8 @@ - - + + -- cgit v1.2.3