Skip to content

Interface: FileValidationResult ​

Result returned by isValidFile.

Properties ​

PropertyTypeDescription
durationnumberDuration of the media file in milliseconds, or -1 if invalid.
fileTypestringDetected file type (e.g. "video", "audio", "unknown").
isValidbooleanWhether the file is a valid audio or video file.

Released under the MIT License.