Android Compress Video before Upload to Server

前端 未结 5 1877
情书的邮戳
情书的邮戳 2021-02-09 01:41

How can I compress a video file in Android before uploading to a remote server? I\'m not looking to zip up the file, because I don\'t think that will help much. I want to compre

5条回答
  •  太阳男子
    2021-02-09 01:52

    From Android 18 onwards you have direct android API to do Video Encoding but if you are targeting Less than API level 18 it not straight forward

    the below link does the encoding https://github.com/google/grafika/blob/master/src/com/android/grafika/VideoEncoderCore.java

提交回复
热议问题