media_tools

Last updated:

0 purchases

media_tools Image
media_tools Images
Add to Cart

Description:

media tools

Media Tools #
A package that provide some functions to handle with media file
Getting started #
Depend on it #
dependencies:
media_tools: ^latest
copied to clipboard
Functions #

cut (audio, video), concat (audio, video), getDuration (audio, video), convert video -> audio

Usage #
I use the ffmpeg_kit_flutter_full package which requires a higher Android SDK version.
So please modify your build.gradle (app) file as follows to avoid errors.
defaultConfig {
...
minSdkVersion 24
...
}
copied to clipboard
AudioTools.cutAudio(...) return audio file path after cutting
import 'package:media_tools/src/audio_tools.dart';
...
var startPoint = 15.0; // the start time you want
var endPoint = 45.0; // end time
var pathToFile = 'path/to/audio-file.mp3'; //path to your file
var result = await AudioTools.cutAudio(pathToFile, startPoint, endPoint);
...
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.