HTML5 & Javascript, iPhone File Upload, Preventing phone from going to sleep -


use-case

  1. html5 website @ iphone used upload big video files ( gallery )
  2. big files take considerable time upload
  3. iphone sleep mode within ~15 seconds
  4. while in sleep mode formdata/multipart upload paused

having above in mind, not practical upload big files using iphone website.

i must have implemented using website.

using website ( , not app ) there way to

  1. prevent phone going sleep while uploading
  2. keep javascript/upload running while phone sleeping

any appreciated

update: this article appears more relevant.

you should chunk video , hash each chunk using html5 file api. mobile devices have lot of errors during transmissions. if chunk fails, you'll need request again. may not seem issue if you're going on ssl or tls, however, issue. failure rates high if don't chunk video (because has start on again , probability of failure during such large file quite high).

also, take peek @ this video. further explain details of transmission patterns of radios in mobile devices. there further references @ end of talk more details.

as how bypass uiwebview behaviour, may want try intercepting http request , writing objective c code manage uploading. see this article implementation details.

lastly, i'm not sure how successful you'll uiwebview implementation (ie. not writing objective c). uiwebview seems aggressive (and inconsistent) how memory lets consume before forcibly closes web page.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -