Video stream source change using Python Flask and JS I have the following server side route code for stream