video.cerulea.blue/web/viewer.vto

51 lines
1.6 KiB
Text

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title ?? "(untitled)" }} | video.cerulea.blue</title>
<link rel="stylesheet" href="/css/styles.css" />
<meta property="og:title" content="{{ title ?? "(untitled)" }}" />
{{ if description }}
<meta property="og:description" content="{{ description }}" />
{{ /if }}
<meta property="og:type" content="video.other" />
<meta property="og:url" content="{{ pageUrl }}" />
{{ if videoUrl }}
<meta property="og:video" content="{{ videoUrl }}" />
<meta property="og:video:url" content="{{ videoUrl }}" />
<meta property="og:video:type" content="{{ videoType ?? "video/mp4" }}" />
{{ /if }}
<meta name="twitter:card" content="player" />
<meta name="twitter:title" content="{{ title ?? "(untitled)" }}" />
{{ if description }}
<meta name="twitter:description" content="{{ description }}" />
{{ /if }}
{{ if videoUrl }}
<meta name="twitter:player" content="{{ pageUrl }}" />
<meta name="twitter:player:stream" content="{{ videoUrl }}" />
<meta name="twitter:player:stream:content_type" content="{{ videoType ?? "video/mp4" }}" />
{{ /if }}
</head>
<body>
<main>
<div id="player">
{{ if videoUrl }}
<video crossorigin="anonymous" controls>
<source src="{{ videoUrl }}" />
</video>
{{ /if }}
{{ if title }}
<h1>{{ title }}</h1>
{{ /if }}
{{ if description }}
<p class="description">{{ description }}</p>
{{ /if }}
</div>
</main>
</body>
</html>