Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Fix embeds not loading on prod builds. Closes #2186
Gabe Kangas7f00f6cd2dbc
diff --git a/controllers/embed.go b/controllers/embed.godeleted file mode 100644index df2cde0f49..0000000000--- a/controllers/embed.go+++ /dev/null@@ -1,31 +0,0 @@-package controllers--import (- "net/http"-- "github.com/owncast/owncast/router/middleware"-)--// GetChatEmbedreadwrite gets the embed for readwrite chat.-func GetChatEmbedreadwrite(w http.ResponseWriter, r *http.Request) {- // Set our global HTTP headers- middleware.SetHeaders(w)-- http.ServeFile(w, r, "webroot/index-standalone-chat-readwrite.html")-}--// GetChatEmbedreadonly gets the embed for readonly chat.-func GetChatEmbedreadonly(w http.ResponseWriter, r *http.Request) {- // Set our global HTTP headers- middleware.SetHeaders(w)-- http.ServeFile(w, r, "webroot/index-standalone-chat-readonly.html")-}--// GetVideoEmbed gets the embed for video.-func GetVideoEmbed(w http.ResponseWriter, r *http.Request) {- // Set our global HTTP headers- middleware.SetHeaders(w)-- http.ServeFile(w, r, "webroot/index-video-only.html")-}diff --git a/router/router.go b/router/router.goindex cdb4969e2d..2aa8a6aebe 100644--- a/router/router.go+++ b/router/router.go@@ -58,18 +58,6 @@ func Start() error {// web config apihttp.HandleFunc("/api/config", controllers.GetWebConfig)- // pre v0.0.8 chat embed- http.HandleFunc("/embed/chat", controllers.GetChatEmbedreadonly)-- // readonly chat embed- http.HandleFunc("/embed/chat/readonly", controllers.GetChatEmbedreadonly)-- // readwrite chat embed- http.HandleFunc("/embed/chat/readwrite", controllers.GetChatEmbedreadwrite)-- // video embed- http.HandleFunc("/embed/video", controllers.GetVideoEmbed)-// return the YP protocol datahttp.HandleFunc("/api/yp", yp.GetYPResponse)