Xamarin.Forms.VideoTrimmer 1.0.4

Xamarin.Forms Library that targets Android and iOS, to trim videos

Install-Package Xamarin.Forms.VideoTrimmer -Version 1.0.4
dotnet add package Xamarin.Forms.VideoTrimmer --version 1.0.4
<PackageReference Include="Xamarin.Forms.VideoTrimmer" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.Forms.VideoTrimmer --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Xamarin.Forms.VideoTrimmer

Xamarin.Forms Library that targets Android and iOS, to trim videos

Nuget package: https://www.nuget.org/packages/Xamarin.Forms.VideoTrimmer

Setup

Install Nuget Package in Xamarin.Android, Xamarin.iOS and Xamarin.Forms projects.

API Usage

Invoke VideoTrimmerService.Instance.TrimAsync(int startMS, int lengthMS, string inputPath, string outputPath) from Xamarin.Forms project.

Example

//inputFilePath is the file path of input video
//startMS and lengthMS to be provided in milli seconds
if (await VideoTrimmerService.Instance.TrimAsync(startTime * 1000, lengthInSeconds * 1000, inputFilePath, outputPath))
{
    //if the TrimAsync method returns true, trimmed video will be present at "outputPath" location
    await DisplayAlert("", "Video Trimmed Successfully", "OK");
}
else
{
    await DisplayAlert("", "Video Trimming failed", "OK");
}

Demo Post

Plugin Demonstration Post

Xamarin.Forms.VideoTrimmer

Xamarin.Forms Library that targets Android and iOS, to trim videos

Nuget package: https://www.nuget.org/packages/Xamarin.Forms.VideoTrimmer

Setup

Install Nuget Package in Xamarin.Android, Xamarin.iOS and Xamarin.Forms projects.

API Usage

Invoke VideoTrimmerService.Instance.TrimAsync(int startMS, int lengthMS, string inputPath, string outputPath) from Xamarin.Forms project.

Example

//inputFilePath is the file path of input video
//startMS and lengthMS to be provided in milli seconds
if (await VideoTrimmerService.Instance.TrimAsync(startTime * 1000, lengthInSeconds * 1000, inputFilePath, outputPath))
{
    //if the TrimAsync method returns true, trimmed video will be present at "outputPath" location
    await DisplayAlert("", "Video Trimmed Successfully", "OK");
}
else
{
    await DisplayAlert("", "Video Trimming failed", "OK");
}

Demo Post

Plugin Demonstration Post

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.4 146 8/2/2020
1.0.3 129 7/26/2020
1.0.2 156 7/26/2020