This commit is contained in:
1 parent
e22c664aae
commit
2a0e5e5591
1 file changed
+2
-1
@@ -2,7 +2,7 @@
|
|||||||
import WebsiteLayout from '@layouts/website/WebsiteLayout.astro';
|
import WebsiteLayout from '@layouts/website/WebsiteLayout.astro';
|
||||||
import VideoPlayer from '@app/website/video/VideoPlayer.svelte';
|
import VideoPlayer from '@app/website/video/VideoPlayer.svelte';
|
||||||
import { getVideoMetadata, resolveVideo } from '@util/video.ts';
|
import { getVideoMetadata, resolveVideo } from '@util/video.ts';
|
||||||
import { siteUrl } from '@util/url.ts';
|
import { siteBase, siteUrl } from '@util/url.ts';
|
||||||
|
|
||||||
const { name } = Astro.params;
|
const { name } = Astro.params;
|
||||||
|
|
||||||
@@ -20,6 +20,7 @@ const streamUrl = siteUrl(`video/${encodeURIComponent(video.name)}/stream`);
|
|||||||
<Fragment slot="head">
|
<Fragment slot="head">
|
||||||
<meta property="og:type" content="video" />
|
<meta property="og:type" content="video" />
|
||||||
<meta property="og:video" content={streamUrl} />
|
<meta property="og:video" content={streamUrl} />
|
||||||
|
{streamUrl.startsWith('https') && <meta property="og:video:secure_url" content={streamUrl} />}
|
||||||
<meta property="og:video:type" content={video.contentType} />
|
<meta property="og:video:type" content={video.contentType} />
|
||||||
{width && <meta property="og:video:width" content={width.toString()} />}
|
{width && <meta property="og:video:width" content={width.toString()} />}
|
||||||
{height && <meta property="og:video:height" content={height.toString()} />}
|
{height && <meta property="og:video:height" content={height.toString()} />}
|
||||||
|
|||||||
Reference in new issue
Block a user