allow fullscreen

This commit is contained in:
Roy Olav Purser 2021-05-13 17:27:07 +02:00
parent 9ed60d46df
commit 1632e2f7e0
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -75,7 +75,7 @@ if icecast_server is not None and stream_server is not None:
template_html = None template_html = None
template_js = None template_js = None
template_embed = tornado.template.Template('<iframe src="{{ origin }}?provider={{ provider }}&render=true"></iframe>') template_embed = tornado.template.Template('<iframe src="{{ origin }}?provider={{ provider }}&render=true" allow="fullscreen"></iframe>')
videojs_version = None videojs_version = None
castjs_version = None castjs_version = None
@ -197,13 +197,13 @@ class MainHandler(tornado.web.RequestHandler):
try: try:
if isinstance(width_str, str): if isinstance(width_str, str):
width_new = int(width_str) width_new = int(width_str)
if width_new > 16: if width_new >= 16:
width = width_new width = width_new
else: else:
raise ValueError("invalid width") raise ValueError("invalid width")
if isinstance(height_str, str): if isinstance(height_str, str):
height_new = int(height_str) height_new = int(height_str)
if height_new > 9: if height_new >= 9:
height = height_new height = height_new
else: else:
raise ValueError("invalid height") raise ValueError("invalid height")