question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always compressing 32.0 Bytes

See original GitHub issue

Issue Description

I use Video Compressor class. But It always compressing 32.0 Bytes.

This is my code.

`Uri uri = Uri.parse(filePath); VideoCompressor.start( getApplicationContext(), uri, filePath, desFile.getAbsolutePath(), new CompressionListener() { @Override public void onStart() { Trace.Debug(“++ onStart()”); }

                            @Override
                            public void onSuccess() {
                                Trace.Debug("++ onSuccess()");
                                Trace.Debug(">> file.length() = " + desFile.length());
                            }

                            @Override
                            public void onFailure(@NotNull String s) {
                                Trace.Debug("++ onFailure()");
                                Trace.Debug(">> String s = " + s.toString());
                            }

                            @Override
                            public void onProgress(float v) {
                                Trace.Debug("++ onProgress()");
                            }

                            @Override
                            public void onCancelled() {
                                Trace.Debug("++ onCancelled()");
                            }
                        }, VideoQuality.MEDIUM, false, false
                );`

How to get collect compressing :?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DevPralycommented, Jul 5, 2021

Hi, I can confirm the bug is fixed in 0.9.3. Compile/target sdk 30, running on android 10

Thanks !

0reactions
namitshahcommented, Jul 21, 2021

@AbedElazizShe, There seems to be an issue with Gradle Installation in version 0.9.3, as many classes and interfaces such as VideoCompressor, VideoQuality and CompressionListener are not present in the final installed package. I am trying to use these classes in Java, and as most of these have been written in Kotlin, it is possible that they are not accessible because of this (an issue with Java class generation?). This same thing also happens with versions 0.9.1 and 0.9.2. However, when I install version 0.9.0, all of these classes are suddenly accessible.

Should I post this as a new issue or continue the conversation here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why compressed bytes is bigger than bytes? - Stack Overflow
I thought compressedBytes should be less. If compressing something always made it smaller, what's to stop you from compressing a zip file ...
Read more >
Results of experimenting with Brotli for dynamic web content
Compression is one of the most important tools CloudFlare has to accelerate website performance. Compressed content takes less time to ...
Read more >
What is the minimum bytes recommended for compression?
There is no universal answer. It all depends on which kind of data. Some will need 1 KB before starting to show visible...
Read more >
Troubleshoot issues compressing files in CloudFront
I'm using Amazon CloudFront distribution to automatically serve compressed objects, but the content is not compressed in the viewer.
Read more >
SMB Compression | Microsoft Learn
SMB compression allows an administrator, user or application to request compression of files as they transfer over the network.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found