Refer: http://blog.miguelgrinberg.com/post/video-streaming-with-flask