Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Releases: AbedElazizShe/LightCompressor

Compression library for videos in Android

17 Aug 08:43

Choose a tag to compare

  • Thanks to LiewJunTung for improving the error handling.
  • Thanks to CristianMG for improving the storage configuration and making the library testable.
  • Thanks to dan3988 for replacing video size with resizer which made using the library way more flexible.
  • Thanks to imSzukala for changing min supported api to 21.
  • Thanks to josebraz for improving codec profile approach.
  • Thanks to ryccoatika for improving exception handling for the coroutines.

Compression library for videos in Android

27 Sep 16:53
261d291

Choose a tag to compare

  • Bugs fixes.
  • Thanks to vitorpamplona, Fixes a crash when the user tries a video with malformed bitrate information
  • Thanks to amrreda1995 for Force compressing code to run in IO thread

Compression library for videos in Android

16 Jul 11:28

Choose a tag to compare

Compression library for videos in Android

09 Jul 09:10

Choose a tag to compare

  • Breaking Minimum supported API is 24.
  • Breaking AppSpecificStorageConfiguration does not accept videoName anymore.
  • Breaking SharedStorageConfiguration does not accept videoName anymore.
  • Breaking Configuration requires a list of names for the videos passed to the library.
  • SharedStorageConfiguration accepts subFolderName.
  • Thanks to mohammadnt, Fix not playing video on Chrome mobile.
  • Thanks to hpanahiird for probable fixes for issues #135 and #137
  • Bugs fixes for #151, #150, #148, #147 #146, #143, #136

Compression library for videos in Android

13 Dec 16:26

Choose a tag to compare

- **Breaking** `StorageConfiguration` was removed.

- **Breaking** `AppSpecificStorageConfiguration` can be passed to store the output video in Android's App Specific Storage.
- **Breaking** `SharedStorageConfiguration` can be passed to store the output video in Android's Primary Storage, it accepts storing at `pictures`, `downloads`, or `movies`.
- Only one of the configurations can be provided at a time, either `AppSpecificStorageConfiguration` or `SharedStorageConfiguration`.

Compression library for videos in Android

12 Dec 09:51

Choose a tag to compare

1.2.2

- **Breaking** videoBitrate was renamed to videoBitrateInMbps. It sho…

Compression library for videos in Android

11 Dec 17:46

Choose a tag to compare

  • Breaking videoBitrate was renamed to videoBitrateInMbps. It should be int.
  • Updated README Usage section
  • Updated gradle and target android sdk to 33
  • Bugs fixes

Compression library for videos in Android

06 Jun 09:30

Choose a tag to compare

  • Breaking You should pass storageConfiguration which contains the directory you wish to save the output videos in as saveAt, an optional name of the video output as fileName, and whether the video output should be saved in app-specific file directory or not as isExternal.
  • Breaking frameRate cannot be passed anymore.
  • Bugs fixes

Compression library for videos in Android

23 Jan 10:51

Choose a tag to compare

  • Breaking srcPath is no longer allowed, only video uri is allowed.
  • Breaking You should pass a list of uris now.
  • Breaking You should pass the directory you wish to save the output videos in. e.g. saveAt: Environment.DIRECTORY_MOVIES.
  • Breaking No need to pass destPath or streamableFile anymore, only saveAt.
  • Breaking Passing context is required now.
  • It is possible to pass custom width and height or ask the library to keep the original height and width.
  • It is possible to compress multiple videos.
  • It is possible to pass isStreamable flag to ensure the video is prepared for streaming.
  • OnStart, OnSuccess, OnFailure, OnProgress, and OnCancelled return an index position for the video being compressed, this index matches the order of the urls list passed to the library.
  • OnSuccess returns the new size and the path of the video after compression.

Compression library for videos in Android

21 Jan 18:07

Choose a tag to compare

  • Breaking srcPath is no longer allowed, only video uri is allowed.
  • Breaking You should pass a list of uris now.
  • Breaking You should pass the directory you wish to save the output videos in. e.g. saveAt: Environment.DIRECTORY_MOVIES.
  • Breaking No need to pass destPath or streamableFile anymore, only saveAt.
  • Breaking Passing context is required now.
  • It is possible to pass custom width and height or ask the library to keep the original height and width.
  • It is possible to compress multiple videos.
  • It is possible to pass isStreamable flag to ensure the video is prepared for streaming.