문제

Any idea how the youtube video uploader works? The interesting feature here is that you can resume a broken upload-process (e.g. when you close the browser or your internet connection is lost meanwhile). It seems that they do not use Java, Flash or some other native stuff. Perhaps any fancy HTML5 stuff? Or browser-specific methods?

도움이 되었습니까?

해결책

I verified that youtube doesn't use Flash (my first guess) using flashblock. It appears that they are using the fancy new HTML5 javascript file api.

You can read about how this can be done (mozilla specific): https://hacks.mozilla.org/2011/04/resumeupload/

Or check out this neat library that helps you achieve resumable uploads: https://github.com/23/resumable.js

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top