Code Monkey home page Code Monkey logo

Comments (5)

mpigorini avatar mpigorini commented on July 21, 2024 1

I added includeAudio param to the compressVideo method

MediaInfo mediaInfo = await VideoCompress.compressVideo(
videoPath,
quality: VideoQuality.LowQuality,
deleteOrigin: false,
includeAudio: true
);

from videocompress.

akshayaeo avatar akshayaeo commented on July 21, 2024

having the issue on my side too below getting null even the path I'm getting is not null

I/flutter (21309): VideoCompress: You can try to subscribe to the
I/flutter (21309): compressProgress$ stream to know the compressing state.
E/MethodChannel#video_compress(21309): Failed to handle method call
E/MethodChannel#video_compress(21309): kotlin.KotlinNullPointerException
E/MethodChannel#video_compress(21309): at com.example.video_compress.VideoCompressPlugin.onMethodCall(VideoCompressPlugin.kt:83)
E/MethodChannel#video_compress(21309): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/MethodChannel#video_compress(21309): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#video_compress(21309): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/MethodChannel#video_compress(21309): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#video_compress(21309): at android.os.MessageQueue.next(MessageQueue.java:336)
E/MethodChannel#video_compress(21309): at android.os.Looper.loop(Looper.java:181)
E/MethodChannel#video_compress(21309): at android.app.ActivityThread.main(ActivityThread.java:7550)
E/MethodChannel#video_compress(21309): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#video_compress(21309): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
E/MethodChannel#video_compress(21309): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
I/flutter (21309): Error from VideoCompress:
I/flutter (21309): Method: compressVideo
I/flutter (21309): PlatformException(error, null, null)

flutter doctor

[✓] Flutter (Channel stable, v1.17.1, on Linux, locale en_IN)
• Flutter version 1.17.1 at /home/akshya/Aeologic/Flutter_sdks/flutter_v17.1/flutter_linux_1.17.1-stable/flutter
• Framework revision f7a6a7906b (6 months ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /home/akshya/Android_2.3/Sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /home/akshya/Aeologic/android_studio_4.0/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Android Studio (version 2.3)
• Android Studio at /home/akshya/Android_2.3/android-studio
• Flutter plugin version 31.3.3
• Dart plugin version 182.5124
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 4.0)
• Android Studio at /home/akshya/Aeologic/android_studio_4.0/android-studio
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
• VS Code at /usr/share/code
• Flutter extension version 3.9.1

[✓] Connected device (1 available)
• Redmi Note 7 Pro • a27a689a • android-arm64 • Android 10 (API 29)

• No issues found!
Process finished with exit code 0

from videocompress.

drexel-ue avatar drexel-ue commented on July 21, 2024

I added includeAudio param to the compressVideo method

MediaInfo mediaInfo = await VideoCompress.compressVideo(
videoPath,
quality: VideoQuality.LowQuality,
deleteOrigin: false,
includeAudio: true
);

can confirm

from videocompress.

shaohui93 avatar shaohui93 commented on July 21, 2024

我在includeVideo方法中添加了includeAudio参数

MediaInfo mediaInfo =等待VideoCompress.compressVideo(
videoPath,
quality:VideoQuality.LowQuality,
deleteOrigin:false,
includeAudio:true
);

可以确认

This solves my problem

from videocompress.

jonataslaw avatar jonataslaw commented on July 21, 2024

Fixed on 2.1.1

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.