embed needs to be updated
This commit is contained in:
parent
46e22d043b
commit
551c163bbe
2 changed files with 14 additions and 7 deletions
|
@ -10,14 +10,14 @@
|
||||||
<meta property="og:url" content="{{.Permalink}}">
|
<meta property="og:url" content="{{.Permalink}}">
|
||||||
{{if .Params.video}}
|
{{if .Params.video}}
|
||||||
<meta name="twitter:card" content="player"/>
|
<meta name="twitter:card" content="player"/>
|
||||||
<meta property="og:video" 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: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:secure_url" content="{{.Site.BaseURL}}/embed?v={{.Params.video}}">
|
||||||
<meta property="og:type" content="video">
|
<meta property="og:type" content="video">
|
||||||
<meta name="twitter:player:width" content="480" />
|
<meta name="twitter:player:width" content="480" />
|
||||||
<meta name="twitter:player:height" content="360" />
|
<meta name="twitter:player:height" content="360" />
|
||||||
<link rel="alternate" type="application/rss+xml" href="{{.Site.BaseURL}}/index.xml">
|
<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}}
|
{{else}}
|
||||||
{{if .Params.peertubeURL}}
|
{{if .Params.peertubeURL}}
|
||||||
<meta property="og:video" content="{{.Params.peertubeURL}}">
|
<meta property="og:video" content="{{.Params.peertubeURL}}">
|
||||||
|
|
|
@ -1,14 +1,21 @@
|
||||||
<style>
|
<style>
|
||||||
article video{
|
body{
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
header,footer{
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
#main{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top:0;
|
top:0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width:100vw;
|
width:100vw;
|
||||||
|
height: 100vh;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
max-width: initial;
|
max-width: initial;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<video controls id="main">
|
<video controls id="main" class="video-player">
|
||||||
<source src="">
|
<source src="">
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
|
@ -22,6 +29,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var source = document.createElement('source')
|
var source = document.createElement('source')
|
||||||
source.src = '/media/'+getUrlParameter('v');
|
source.src = ''+getUrlParameter('v');
|
||||||
document.getElementById('main').appendChild(source);
|
document.getElementById('main').appendChild(source);
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue