diff --git a/web/handler.go b/web/handler.go
index 0cb527e..8a30ffb 100644
--- a/web/handler.go
+++ b/web/handler.go
@@ -13,6 +13,7 @@ import (
"github.com/markbates/pkger"
"gitlab.crans.org/nounous/ghostream/internal/monitoring"
+ "gitlab.crans.org/nounous/ghostream/stream/ovenmediaengine"
"gitlab.crans.org/nounous/ghostream/stream/webrtc"
)
@@ -61,8 +62,8 @@ func viewerHandler(w http.ResponseWriter, r *http.Request) {
Cfg *Options
Path string
WidgetURL string
- OMEApp string
- }{Path: path, Cfg: cfg, WidgetURL: "", OMEApp: omeCfg.App}
+ OMECfg *ovenmediaengine.Options
+ }{Path: path, Cfg: cfg, WidgetURL: "", OMECfg: omeCfg}
// Load widget is user does not disable it with ?nowidget
if _, ok := r.URL.Query()["nowidget"]; !ok {
diff --git a/web/template/player.html b/web/template/player.html
index 118ee4b..f280d43 100644
--- a/web/template/player.html
+++ b/web/template/player.html
@@ -34,13 +34,17 @@
{{end}}
-
-
-
-
+{{if .OMECfg.Enabled}}
+
+
+
+{{end}}
{{end}}