diff --git a/frontend/index.html b/frontend/index.html index 2419d84..e239efc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,7 +1,7 @@ - + diff --git a/stream.py b/stream.py index 3a45d93..a0b57d5 100755 --- a/stream.py +++ b/stream.py @@ -72,7 +72,7 @@ if icecast_server is not None and stream_server is not None: template_html = None template_js = None -template_embed = tornado.template.Template('') +template_embed = tornado.template.Template('') videojs_version = None castjs_version = None @@ -188,7 +188,7 @@ class MainHandler(tornado.web.RequestHandler): embed_json["version"] = "1.0" embed_json["type"] = "video" embed_json["html"] = f'' - embed_json["html"] = str(template_embed.generate(path=self.request.path, provider=provider), "utf-8") + embed_json["html"] = str(template_embed.generate(origin=stream_server, path=self.request.path, provider=provider), "utf-8") self.set_header("Content-Type", "application/json+oembed; charset=utf-8") self.write(json.dumps(embed_json))