templates/video.html (view raw)
1<!DOCTYPE html>
2<html lang="und">
3 ███████ ██ ██ ██ ██ ██ ███ ██ ██ ██████ ██ ██ ██████ ███████
4 ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5 █████ ██ ███ ████ ██ ██ ██ ██ ██ ██ ██ ██████ █████
6 ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
7 ██ ██ ██ ██ ██ ███ ███ ██ ███ ██████ ███████
8 ██
9 ██ A better way to embed YouTube videos on Telegram (inspired by FixTweet).
10 ██
11<head>
12 <link rel="canonical" href="https://www.youtube.com/watch?v={{ .VideoId }}" />
13 <meta property="theme-color" content="0000FF" />
14 <meta property="twitter:card" content="player" />
15 <meta property="twitter:site" content="{{ .Uploader }}" />
16 <meta property="twitter:creator" content="{{ .Uploader }}" />
17 <meta property="twitter:title" content="{{ .Title }}" />
18 <meta http-equiv="refresh" content="0;url=https://www.youtube.com/watch?v={{ .VideoId }}" />
19 <meta property="og:url" content="https://www.youtube.com/watch?v={{ .VideoId }}" />
20 <meta property="og:title" content="{{ .Title }}" />
21 <meta property="og:description" content="{{ .Description }}" />
22 <meta property="og:site_name" content="FixYouTube ({{ .Uploader }})" />
23 <meta property="twitter:image" content="0" />
24 <meta property="twitter:player:stream:content_type" content="video/mp4" />
25 <meta property="twitter:player:height" content="{{ .Height }}" />
26 <meta property="twitter:player:width" content="{{ .Width }}" />
27 <meta property="og:video" content="/proxy/{{ .VideoId }}" />
28 <meta property="og:video:secure_url" content="/proxy/{{ .VideoId }}" />
29 <meta property="og:video:height" content="{{ .Height }}" />
30 <meta property="og:video:width" content="{{ .Width }}" />
31 <meta property="og:video:duration" content="{{ .Duration }}">
32 <meta property="og:video:type" content="video/mp4" />
33</head><body></body></html>