Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Fix path for image open meta tag #3075. (#3087)
Yusukedfc1f43f1de7
diff --git a/controllers/index.go b/controllers/index.goindex b632df41d0..18f44674d2 100644--- a/controllers/index.go+++ b/controllers/index.go@@ -51,6 +51,7 @@ func renderIndexHtml(w http.ResponseWriter, nonce string) {Image stringStatusJSON stringServerConfigJSON string+ EmbedVideo stringNonce string}@@ -71,13 +72,14 @@ func renderIndexHtml(w http.ResponseWriter, nonce string) {content := serverSideContent{Name: data.GetServerName(),Summary: data.GetServerSummary(),- RequestedURL: data.GetServerURL(),+ RequestedURL: fmt.Sprintf("%s%s", data.GetServerURL(), "/"),TagsString: strings.Join(data.GetServerMetadataTags(), ","),- ThumbnailURL: "/thumbnail.jpg",- Thumbnail: "/thumbnail.jpg",- Image: "/logo/external",+ ThumbnailURL: "thumbnail.jpg",+ Thumbnail: "thumbnail.jpg",+ Image: "logo/external",StatusJSON: string(sb),ServerConfigJSON: string(cb),+ EmbedVideo: "embed/video",Nonce: nonce,}diff --git a/web/components/layouts/Main/Main.tsx b/web/components/layouts/Main/Main.tsxindex a71bee8df5..e8e296bafc 100644--- a/web/components/layouts/Main/Main.tsx+++ b/web/components/layouts/Main/Main.tsx@@ -123,8 +123,8 @@ 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}}/embed/video" />- <meta property="og:video:secure_url" content="{{.RequestedURL}}/embed/video" />+ <meta property="og:video" content="{{.RequestedURL}}{{.EmbedVideo}}" />+ <meta property="og:video:secure_url" content="{{.RequestedURL}}{{.EmbedVideo}}" /><meta property="og:video:height" content="315" /><meta property="og:video:width" content="560" /><meta property="og:video:type" content="text/html" />@@ -135,7 +135,7 @@ export const Main: FC = () => {<meta property="twitter:description" content="{{.Summary}}" /><meta property="twitter:image" content="{{.Image}}" /><meta property="twitter:card" content="player" />- <meta property="twitter:player" content="{{.RequestedURL}}/embed/video" />+ <meta property="twitter:player" content="{{.RequestedURL}}{{.EmbedVideo}}" /><meta property="twitter:player:width" content="560" /><meta property="twitter:player:height" content="315" /></Head>