Answers for "Flask Webserver To Stream Video"

0

Flask Webserver To Stream Video

1 from flask_socketio import SocketIO
2 from flask import Flask, render_template
3
4
5 app = Flask(__name__)
6 socketio = SocketIO(app)
7
8
9 @app.route('/')
10 def index():
11    """Home page."""
12    return render_template('index.html')
13
14
15 if __name__ == "__main__":
16    print('[INFO] Starting server at http://localhost:5001')
17    socketio.run(app=app, host='0.0.0.0', port=5001)
Posted by: Guest on May-19-2021

Browse Popular Code Answers by Language