Code Monkey home page Code Monkey logo

Comments (14)

maheshj01 avatar maheshj01 commented on August 23, 2024 1

make sure after adding the plugin you stop and re-run the project and not just hot reload

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

Please i need help here none of the static methods of this plugins is working. All the methods cannot be invoked from dart can you please fix this

from videocompress.

jonataslaw avatar jonataslaw commented on August 23, 2024

Hi, android or iOS?

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

Android, i have not tested on ios yet.

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

also downgraded to the previous version 1.0.0, which required me to created an instance of the VideoCompress class but i still get MissingPluginException. Is the a minimum API level for usage.

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

Hi, android or iOS?

Android and i have not tested on physical device, using an emulator.

from videocompress.

jonataslaw avatar jonataslaw commented on August 23, 2024

I tested it now and everything works fine.
Are you using api above 19?

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

Yea

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

minSdkVersion; 21

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

I tested it now and everything works fine.
Are you using api above 19?

image

here is the snippet of my code which has to do the compression, here am currently using your previous version.

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

I have used the FFmpeg library and also Flutter_video_compress library to do the compression but they are very slow, and your package seems not to be using the ffmpeg library so i will prefer it if its faster.

from videocompress.

jonataslaw avatar jonataslaw commented on August 23, 2024

cancelCompress has not yet been implemented. I even made some comments in the code:

https://github.com/jonataslaw/VideoCompress/blob/master/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt#L53

To remind me to do this when I have time. Basically I will have to raise the level of the compression function so that it is accessible within other MethodChannel calls

from videocompress.

Mangielijah avatar Mangielijah commented on August 23, 2024

cancelCompress has not yet been implemented. I even made some comments in the code:

https://github.com/jonataslaw/VideoCompress/blob/master/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt#L53

To remind me to do this when I have time. Basically I will have to raise the level of the compression function so that it is accessible within other MethodChannel call

Ok, so what am i suppose to do 😞

from videocompress.

ukuleleplayer avatar ukuleleplayer commented on August 23, 2024

I'm seconding this - not using cancelCompression() but still getting this error. On Android while running in a FlutterIsolate (plugin to use plugins in Isolates). I'm getting the same error code as above +

E/FlutterIsolate(32272): IllegalStateException: registrar.activity() must not be null
E/FlutterIsolate(32272): It is possible the default GeneratedPluginRegistrant is attempting to register
E/FlutterIsolate(32272): a plugin that uses registrar.activity() or a similar method. Flutter Isolates have no
E/FlutterIsolate(32272): access to the activity() from the registrant. If the activity is being use to register
E/FlutterIsolate(32272): a method or event channel, have the plugin use registrar.context() instead. Alternatively
E/FlutterIsolate(32272): use a custom registrant for isolates, that only registers plugins that the isolate needs
E/FlutterIsolate(32272): to use.

Not sure if it's totally the same, but no other plugins give this error and it's still the MissingPluginException :)

from videocompress.

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.