embed needs to be updated

This commit is contained in:
Gabriel 2022-09-18 22:15:06 -04:00
parent 46e22d043b
commit 551c163bbe
2 changed files with 14 additions and 7 deletions

View file

@ -10,14 +10,14 @@
<meta property="og:url" content="{{.Permalink}}">
{{if .Params.video}}
<meta name="twitter:card" content="player"/>
<meta property="og:video" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video:url" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video:secure_url" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video" content="{{.Site.BaseURL}}/embed?v={{.Params.video}}">
<meta property="og:video:url" content="{{.Site.BaseURL}}/embed?v={{.Params.video}}">
<meta property="og:video:secure_url" content="{{.Site.BaseURL}}/embed?v={{.Params.video}}">
<meta property="og:type" content="video">
<meta name="twitter:player:width" content="480" />
<meta name="twitter:player:height" content="360" />
<link rel="alternate" type="application/rss+xml" href="{{.Site.BaseURL}}/index.xml">
<meta property="twitter:player" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="twitter:player" content="{{.Site.BaseURL}}/embed?v={{.Params.video}}">
{{else}}
{{if .Params.peertubeURL}}
<meta property="og:video" content="{{.Params.peertubeURL}}">

View file

@ -1,14 +1,21 @@
<style>
article video{
body{
background-color: black;
}
header,footer{
display:none;
}
#main{
position: absolute;
top:0;
left: 0;
width:100vw;
height: 100vh;
max-height: 100vh;
max-width: initial;
}
</style>
<video controls id="main">
<video controls id="main" class="video-player">
<source src="">
</video>
@ -22,6 +29,6 @@
};
var source = document.createElement('source')
source.src = '/media/'+getUrlParameter('v');
source.src = ''+getUrlParameter('v');
document.getElementById('main').appendChild(source);
</script>