define twitter card and viewheight limitation
This commit is contained in:
parent
23a892ad8c
commit
2e9cafc731
1 changed files with 12 additions and 5 deletions
|
@ -4,14 +4,20 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="og:title" content="{{ video_file[:-4] }}">
|
||||
<meta property="og:description" content="DeflaxTV Video">
|
||||
<meta property="og:title" content="DeflaxTV Video">
|
||||
<meta property="og:description" content="{{ video_file[:-4] }}">
|
||||
<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:image" content={{ url_for('thumb_route', file_name=thumb_file) }}>
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<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">
|
||||
<style>
|
||||
body {
|
||||
|
@ -25,7 +31,8 @@
|
|||
|
||||
#player-container {
|
||||
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>
|
||||
<title>DeflaxTV Video Player</title>
|
||||
|
|
Loading…
Reference in a new issue