Add preview to embed
[oweals/peertube.git] / client / src / app / videos / shared / video.model.ts
index 9ed6a064195389a8a4cda150bbf637dcfc2472bc..f0556343f5045c2ac70b5be795804c3de5e2800a 100644 (file)
@@ -23,6 +23,8 @@ export class Video implements VideoServerModel {
   tags: string[]
   thumbnailPath: string
   thumbnailUrl: string
+  previewPath: string
+  previewUrl: string
   views: number
   likes: number
   dislikes: number
@@ -60,6 +62,7 @@ export class Video implements VideoServerModel {
     podHost: string,
     tags: string[],
     thumbnailPath: string,
+    previewPath: string,
     views: number,
     likes: number,
     dislikes: number,
@@ -85,6 +88,8 @@ export class Video implements VideoServerModel {
     this.tags = hash.tags
     this.thumbnailPath = hash.thumbnailPath
     this.thumbnailUrl = API_URL + hash.thumbnailPath
+    this.previewPath = hash.previewPath
+    this.previewUrl = API_URL + hash.previewPath
     this.views = hash.views
     this.likes = hash.likes
     this.dislikes = hash.dislikes