user1540792
user1540792

Reputation: 88

Zip a video file in Phonegap before upload

Hi I am using the Phonegap capture video method to capture and upload videos, however I want to zip the file before uploading to server.

Is there any means of compressing a file on client-side?

How efficient is this?

And any pointers would be appreciated.

Ismael

Upvotes: 1

Views: 1297

Answers (2)

Clinton Ward
Clinton Ward

Reputation: 2511

I would condider converting the file to mpeg compression instead.

try this jquery libary link

then you don't need to unzip the file, you can just play it as a compressed format.

Upvotes: 0

Anup Cowkur
Anup Cowkur

Reputation: 20563

There is no native API to do this. However, You can try this library called JSZip:

http://stuartk.com/jszip/

Upvotes: 1

Related Questions