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" />
paket add Xamarin.Forms.VideoTrimmer --version 1.0.4
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
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
Dependencies
-
.NETStandard 2.0
- Xamarin.Forms (>= 4.3.0.908675)
-
MonoAndroid 9.0
- Xamarin.Forms (>= 4.3.0.908675)
-
Xamarin.iOS 1.0
- Xamarin.Forms (>= 4.3.0.908675)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.