How to open video in browser using Flask

  flask, python

Is there any way to open mp4 video in browser using Flask? Code:

@app.route('/open_video', methods=['GET', 'POST'])
def open_video():    
file = 'directory_path' 

return send_file(file) 

The question is what should write in return to open it?

Source: Python Questions

LEAVE A COMMENT