4

I created a website where a user uploads videos and I process the video frame by frame with a python function. In this function, I know how many frames I've already processed. And I want to show the progress to users in a progress bar. I googled a lot, but almost all progress bars are for uploading, so how can I implement this? Thanks!

Demonedge
  • 1,363
  • 4
  • 18
  • 33
  • see http://stackoverflow.com/questions/2922874/how-to-stream-an-httpresponse-with-django . A simple way would be to write current progress into db or session, and have separated ajax call pull the progress once every X seconds. – serg May 10 '16 at 02:19

1 Answers1

8

I wrote a demo, in case this may help someone else.

Demonedge
  • 1,363
  • 4
  • 18
  • 33