|
@ -24,8 +24,11 @@ def video_feed(): |
|
|
"""Video streaming route. Put this in the src attribute of an img tag.""" |
|
|
"""Video streaming route. Put this in the src attribute of an img tag.""" |
|
|
from roberto import camera |
|
|
from roberto import camera |
|
|
camera.__init__() |
|
|
camera.__init__() |
|
|
return Response(gen(camera), |
|
|
response = Response(gen(camera), |
|
|
mimetype='multipart/x-mixed-replace; boundary=frame') |
|
|
mimetype='multipart/x-mixed-replace; boundary=frame') |
|
|
|
|
|
response.headers.add('X-Accel-Buffering', 'no') |
|
|
|
|
|
return response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@frontend_blueprint.route('/gamepad.js') |
|
|
@frontend_blueprint.route('/gamepad.js') |
|
|
def gamepad_js(): |
|
|
def gamepad_js(): |
|
|