fix(video): support native hls playback via opengraph tags. Fixes #4204
This commit is contained in:
4
static/metadata.html.tmpl
vendored
4
static/metadata.html.tmpl
vendored
@@ -18,6 +18,10 @@
|
||||
<meta property="og:image:url" content="{{.Thumbnail}}">
|
||||
<meta property="og:image:alt" content="{{.Image}}">
|
||||
|
||||
<meta property="og:video" content="{{.RequestedURL}}hls/stream.m3u8" />
|
||||
<meta property="og:video:secure_url" content="{{.RequestedURL}}hls/stream.m3u8" />
|
||||
<meta property="og:video:type" content="application/x-mpegURL" />
|
||||
|
||||
<meta property="og:video" content='{{.RequestedURL}}embed/video' />
|
||||
<meta property="og:video:secure_url" content='{{.RequestedURL}}embed/video' />
|
||||
<meta property="og:video:height" content="315" />
|
||||
|
||||
@@ -113,6 +113,10 @@ export const Main: FC = () => {
|
||||
<meta property="og:image:url" content="{{.RequestedURL}}{{.Thumbnail}}" />
|
||||
<meta property="og:image:alt" content="{{.RequestedURL}}{{.Image}}" />
|
||||
|
||||
<meta property="og:video" content="{{.RequestedURL}}hls/stream.m3u8" />
|
||||
<meta property="og:video:secure_url" content="{{.RequestedURL}}hls/stream.m3u8" />
|
||||
<meta property="og:video:type" content="application/x-mpegURL" />
|
||||
|
||||
<meta property="og:video" content="{{.RequestedURL}}{{.EmbedVideo}}" />
|
||||
<meta property="og:video:secure_url" content="{{.RequestedURL}}{{.EmbedVideo}}" />
|
||||
<meta property="og:video:height" content="315" />
|
||||
|
||||
Reference in New Issue
Block a user