aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-16 10:05:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-16 10:07:26 +0200
commitd8755eed1e452d2efbfc983af0e9d228d152bf6b (patch)
treedb94181e7c993f67919f4ea2bb12f08401c437c2 /client/src/app/videos
parent334ddfa47120ae53bc2643792ec5e1065a4d1141 (diff)
downloadPeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.tar.gz
PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.tar.zst
PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.zip
Add oembed endpoint
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/video-share.component.ts2
-rw-r--r--client/src/app/videos/shared/video.model.ts5
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