このコミットが含まれているのは:
n9k 2021-04-12 12:04:11 +00:00
コミット b1e0b80e69
1個のファイルの変更1行の追加1行の削除

2
app.py
ファイルの表示

@ -202,7 +202,7 @@ def stream():
segment_offset=max(VIEWS_PERIOD // HLS_TIME, 2),
stream_timeout=HLS_TIME + 2,
segment_hook=lambda n: _view_segment(n, token, check_exists=False),
should_close_connection=is_stream_online)
should_close_connection=lambda: not is_stream_online())
file_wrapper = werkzeug.wrap_file(request.environ, concatenated_segments)
response = Response(file_wrapper, mimetype='video/mp4')
response.headers['Cache-Control'] = 'no-cache'