GithubHelp home page GithubHelp logo

Comments (32)

moowoonsunghoon avatar moowoonsunghoon commented on May 31, 2024 2

@nomi9995
it's working!! thank you!!

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024 1

@moowoonsunghoon sorry for that. react-native-compressor>=1.0.0 is for [email protected]

you can use 0.5.6 version for the compressor

after this please do Invalidate Caches / Restart from android studio
image

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024 1

@moowoonsunghoon i will update documentation soon

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024 1

@DavidGonzalezGutierrez can you try this solution uuidjs/uuid#416 (comment)

import 'react-native-get-random-values'; in index.js or App.js file

let know if it fixes it. I will make this one as a part of this package

from react-native-compressor.

DavidGonzalezGutierrez avatar DavidGonzalezGutierrez commented on May 31, 2024 1

Yes, It works!

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024 1

@DavidGonzalezGutierrez I also have published a new version 1.0.3 of the compressor where I added above fix

from react-native-compressor.

DavidGonzalezGutierrez avatar DavidGonzalezGutierrez commented on May 31, 2024 1

Nice work!

from react-native-compressor.

ahmad0303 avatar ahmad0303 commented on May 31, 2024 1

@nomi9995 Hello, When I use minimumFileSizeForCompress in video it changes the file format and didn't upload with the error TypeError: Network request failed
"react-native-compressor": "^0.5.17",
"react-native": "0.64.2",
It perfectly works on images but didn't work on video

from react-native-compressor.

avyasradicle avatar avyasradicle commented on May 31, 2024 1

It worked. Thank you!! :)

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@rnqayush I think this error is not from the compressor package.
i think it is from https://github.com/uuidjs/uuid#getrandomvalues-not-supported

can you provide reproducible example repo? so I can see it

from react-native-compressor.

rnqayush avatar rnqayush commented on May 31, 2024

@nomi9995 thanks for you response, actually i have tested this after removing this video compressor code then it works fine but after implementing this code i get this error.

from react-native-compressor.

rnqayush avatar rnqayush commented on May 31, 2024

@nomi9995 i made a fresh react native project and then installed this package. unfortunately i am getting error kindly look on it and suggest some idea to resolve it. also i am sharing the github repo.
GitHub: https://github.com/rnqayush/react-native-video-compressor

snapshot of error:
toshob2

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@rnqayush Actually this is due to jcenter, many libraries which were published on jcenter having this issue. we should have to publish all libraries to mavenCenter. I will create a ticket on mavenCenter so our library may not be down
https://developer.android.com/studio/build/jcenter-migration
image

from react-native-compressor.

rnqayush avatar rnqayush commented on May 31, 2024

@nomi9995 thanks a lot for your response, kindly let us know when it is expected to be updated.

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@rnqayush actually I did not publish the library on mavenCenter before. I am going to make a ticket on mavenCenter and then d that the community will review the ticket and then will publish or reject it. it depends on the community review.

from react-native-compressor.

rnqayush avatar rnqayush commented on May 31, 2024

@nomi9995 sure thankyou .

from react-native-compressor.

rnqayush avatar rnqayush commented on May 31, 2024

also @nomi9995 do it will work on ios or there too it can have issues.

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@rnqayush it is specifically for android

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@rnqayush can you try 0.5.3-rc.0 version. it is working on my side

from react-native-compressor.

ymane avatar ymane commented on May 31, 2024

I am also facing same issue with "react-native-compressor": 0.5.3 and react-native: 0.64.2
[Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported]

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@ymane can you provide reproducible example in git repo because it is not reproducing on my side

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@rnqayush @ymane I just release 1.0.0 can you try the 1.0.0 version

from react-native-compressor.

moowoonsunghoon avatar moowoonsunghoon commented on May 31, 2024

i have same issue

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@moowoonsunghoon can you tell me your RN version and compressor version?

from react-native-compressor.

moowoonsunghoon avatar moowoonsunghoon commented on May 31, 2024

@nomi9995
my version is
react-native: 0.64.1
react-native-compressor: 1.0.1

from react-native-compressor.

DavidGonzalezGutierrez avatar DavidGonzalezGutierrez commented on May 31, 2024

Hello!
Same issue on iOS.
React Native version: 0.66.2
React Native Compressor: 1.0.2

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@DavidGonzalezGutierrez can you try this Invalidate Caches / Restart from android studio image

from react-native-compressor.

DavidGonzalezGutierrez avatar DavidGonzalezGutierrez commented on May 31, 2024

Yes, but is in iOS.
I clean the build folder in Xcode, and the caches of metro.
But, when I try to compress a video I recieve the error crypto.getRandomValues() not supported.

from react-native-compressor.

DavidGonzalezGutierrez avatar DavidGonzalezGutierrez commented on May 31, 2024

When I use UUID version 4 in my app, I always use with DEV because I read the uuidv4 has problems in development mode

from react-native-compressor.

harleenarora avatar harleenarora commented on May 31, 2024

Compress video is not working on android

from react-native-compressor.

avyasradicle avatar avyasradicle commented on May 31, 2024

Hi I am using "react-native": "0.70.1" and "react-native-compressor": "^1.7.2".
Getting error in build-

  • What went wrong:
    Could not determine the dependencies of task ':react-native-compressor:compileDebugAidl'.

Could not resolve all task dependencies for configuration ':react-native-compressor:debugCompileClasspath'.
Could not find com.github.numandev1:VideoCompressor:1a262bba37.
Required by:
project :react-native-compressor

from react-native-compressor.

numandev1 avatar numandev1 commented on May 31, 2024

@avyasradicle can you try this code and try to run project

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

from react-native-compressor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.