网络应用:如何让Android手机在上传之前压缩视频?

I am making a simple web application where users can upload media for everyone to view. My only problem is that the iPhone will always compress the video before it uploads it (saving my server from getting overencumbered too fast), but the Android does not. Android videos (Nexus 4) are taking >3 times as much disk space as my iPhone (4) videos, because the iPhone compresses the videos before uploading.

The web application is made in .js and .php.

Is it possible to force Android phones to compress videos before they upload them in any way? Perhaps transcode them on the server before storing it.

You have to use a video transcoding service :

You have two ways : — Use an existing API : (dmcloud | zencoder | pandastream...) — Run an ffmpeg instance on your server.