Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, render_template
- app = Flask(__name__,template_folder='template')
- @app.route("/<filename>")
- def html_page(filename):
- return render_template("index.html", filename=filename)
- if __name__ == "__main__":
- app.run(host='0.0.0.0', port=80, debug=True)
- #-----index.html---------
- <html>
- <body>
- <video width="80%" height="80%" controls="controls" autoplay="autoplay">
- <source src="{{filename}}" type="video/mp4" />
- </video>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment