Introduction
The VideoSplit
extension is designed to enhance video manipulation capabilities in Niotron projects. This extension allows you to split, resize, cut, and extract audio from videos, along with downloading and handling video files.
Features
- Split Video: Divide a video into multiple parts.
- Resize Video: Change the dimensions of a video.
- Cut Video: Trim a section of a video.
- Extract Audio: Isolate audio from a video within a specified time interval.
- Download File: Download a file with a URL to the device.
Usage
Splitting a Video
Use SplitVideo(inputVideoPath, numberOfParts)
to split a video into the specified number of parts. This function operates in a separate thread to ensure UI responsiveness.
Resizing a Video
To resize a video, call ResizeVideo(inputVideoPath, width, height)
. It adjusts the video to the given width and height.
Cutting a Video
You can cut a segment from a video by using CutVideo(inputVideoPath, startTime, endTime)
, specifying the start and end times in seconds.
Extracting Audio
Extract audio within a given interval using ExtractAudioInInterval(inputVideoPath, startTime, endTime)
.
Downloading Files
The DownloadFile(fileUrl, title, description, fileName, myDirName)
function allows you to download files from the internet with specified details.
Events
- OnDownloadCompleted: Triggered when a file download completes.
- VideoSplitterCompleted: Fired upon successful video split.
- VideoResizerCompleted: Activated when a video is resized successfully.
- VideoCutterCompleted: Occurs when a video cut operation completes.
- AudioExtractorCompleted: Announces the completion of the audio extraction process.
Permissions
Some operations might require runtime permissions like WRITE_EXTERNAL_STORAGE, especially for devices running on older Android versions.
Error Handling
Each operation comes with a corresponding ‘Failed’ event to handle errors gracefully.
Blocks
Payment methods and price
The price of the extension is €10.00 and can be paid via PayPal. For Brazilians we offer payments via PIX.
This document gives a brief overview of the VideoSplit
extension for Niotron users, highlighting its functionalities and usage.