webapp中,由于视频,照片体积比较大,考虑到在上传服务器时会很慢,不经处理由浪费资源,需要先进行怎样的处理再上传到服务器?主要考虑减小体积,加快传输速度
PHP中文网2017-04-17 14:57:17
First of all, it is impossible to process videos efficiently in a browser environment. Even if you do it hard, it will cause the page to freeze and consume a lot of time. It makes no difference to the user whether the time is spent on preprocessing or uploading. .
Many professional video websites transcode the video after it is uploaded, or directly recommend users to process the video in advance on the upload page.