Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 13, 2021 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/9cf4493eeac2b44dd7fd0bb6a07fef35 to your computer and use it in GitHub Desktop.
Save parzibyte/9cf4493eeac2b44dd7fd0bb6a07fef35 to your computer and use it in GitHub Desktop.
@app.route("/detener_grabacion")
def detener_grabacion():
global grabando
global archivo_video
if not grabando or not archivo_video:
return jsonify(False)
grabando = False
archivo_video.release()
archivo_video = None
return jsonify(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment