I've got a page where you upload videos, those videos are then encoded (much like Youtube). The encoding part can take some time and I want to automatically show the user if encoding is done by periodically polling the encoding status from within the page, if encoding is completed I want to replace the encoding icon with a "play" button so the user can play the video.
Because the list of uploaded videos itself is put into the DOM using AJAX (with jQuery) I have trouble wrapping my head around how to do this. I'd like to use jQuery for this, but I don't know if jQuery can do this.
So the steps are as follows
- user uploads a video
- user is returned to a page
- user "folds open" the list of uploaded videos, some encoded some not yet, the encoded ones have play buttons, the unencoded ones have hourglass icons
- user waits until the icons for the not-yet-encoded videos turn into play buttons
- user pushes play button and the movie plays
My problem is only at step 4. The serverside part is all done as well.
Thanks!