define twitter card and viewheight limitation

This commit is contained in:
deflax 2024-01-20 00:23:27 +02:00
parent 23a892ad8c
commit 2e9cafc731

View file

@ -4,14 +4,20 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="{{ video_file[:-4] }}"> <meta property="og:title" content="DeflaxTV Video">
<meta property="og:description" content="DeflaxTV Video"> <meta property="og:description" content="{{ video_file[:-4] }}">
<meta property="og:type" content="video.movie"> <meta property="og:type" content="video.movie">
<meta property="og:url" content={{ url_for('video_watch_route', file_name_no_extension=video_file[:-4]) }}> <meta property="og:url" content={{ url_for('video_watch_route', file_name_no_extension=video_file[:-4]) }}>
<meta property="og:image" content={{ url_for('thumb_route', file_name=thumb_file) }}> <meta property="og:image" content={{ url_for('thumb_route', file_name=thumb_file) }}>
<meta property="og:image:type" content="image/png"> <meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200"> <meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630"> <meta property="og:image:height" content="630">
<meta name='twitter:card' content='summary'>
<meta name='twitter:site' content={{ url_for('video_watch_route', file_name_no_extension=video_file[:-4]) }}>
<meta name='twitter:title' content='DeflaxTV Video'>
<meta name='twitter:description' content="{{ video_file[:-4] }}">
<meta name='twitter:image' content={{ url_for('thumb_route', file_name=thumb_file) }}>
<meta name='twitter:image:alt' content="{{ video_file[:-4] }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.css">
<style> <style>
body { body {
@ -25,7 +31,8 @@
#player-container { #player-container {
width: 100%; width: 100%;
max-width: 1920px; height: 100vh; /* 100% of the viewport height */
object-fit: cover; /* This ensures the video covers the entire container, maintaining its aspect ratio */
} }
</style> </style>
<title>DeflaxTV Video Player</title> <title>DeflaxTV Video Player</title>