ActivityPub-federated video streaming platform using P2P directly in your web browser
Add max video height on mobile
Chocobozzzacbffe9c0f2c
diff --git a/client/src/app/videos/+video-watch/video-watch.component.scss b/client/src/app/videos/+video-watch/video-watch.component.scssindex eb701e0aba..11518633c0 100644--- a/client/src/app/videos/+video-watch/video-watch.component.scss+++ b/client/src/app/videos/+video-watch/video-watch.component.scss@@ -10,8 +10,9 @@width: 888px;height: 500px;- @media screen and (max-width: 800px) {+ @media screen and (max-width: 600px) {height: auto;+ max-height: calc(100vh - #{$header-height});}// VideoJS create an inner video playerdiff --git a/server/controllers/client.ts b/server/controllers/client.tsindex df2eee9c98..b5dc7b7edd 100644--- a/server/controllers/client.ts+++ b/server/controllers/client.ts@@ -100,11 +100,12 @@ function addOpenGraphAndOEmbedTags (htmlStringPage: string, video: VideoModel) {'@type': 'VideoObject',name: videoNameEscaped,description: videoDescriptionEscaped,+ thumbnailUrl: previewUrl,+ uploadDate: video.createdAt.toISOString(),duration: video.getActivityStreamDuration(),- thumbnailURL: previewUrl,- contentURL: videoUrl,- embedURL: embedUrl,- uploadDate: video.createdAt+ contentUrl: videoUrl,+ embedUrl: embedUrl,+ interactionCount: video.views}let tagsString = ''@@ -124,6 +125,9 @@ function addOpenGraphAndOEmbedTags (htmlStringPage: string, video: VideoModel) {// Schema.orgtagsString += `<script type="application/ld+json">${JSON.stringify(schemaTags)}</script>`+ // SEO+ tagsString += `<link rel="canonical" href="${videoUrl}" />`+return htmlStringPage.replace(OPENGRAPH_AND_OEMBED_COMMENT, tagsString)}