skip to Main Content

Javascript – Video stream source change using Python Flask and JS

I have the following server side route code for stream movies_list = ['./mov1.mp4', './mov2.mp4', './mov3.mp4',] @app.route("/video", methods=["GET"]) def video(): headers = request.headers if not "range" in headers: return current_app.response_class(status=400) video_path = os.path.abspath(os.path.join("media", movies_list[0])) size = os.stat(video_path) size = size.st_size chunk_size…

VIEW QUESTION
Back To Top
Search