UNPKG

fleeta-components

Version:

A comprehensive React component library for fleet management applications

37 lines 1.36 kB
/** * MP4 User Data Parser * Extracts user data chunks from MP4 files including GPS, G-sensor, thumbnail, and LTE data * Based on BlackVue and similar dashcam MP4 file structure */ import type { ParsingResult, GpsParsingResult } from './types'; /** * Complete metadata extraction result */ export interface ExtractedMetadata { gps: GpsParsingResult | null; sensor: import('../sensorParser/types').SensorParsingResult | null; thumbnail: string | null; } /** * Fetch and parse MP4 file from a URL * Downloads the file (or a portion of it) and extracts metadata * * @param videoUrl - URL of the MP4 file to fetch and parse * @returns Promise with extracted metadata (GPS, sensor data, thumbnail) */ export declare function fetchAndParseMP4(videoUrl: string): Promise<ExtractedMetadata>; /** * Parse MP4 file to extract user data chunks * @param file - MP4 file to parse * @returns Promise with parsing result */ export declare function parseMP4UserData(file: File): Promise<ParsingResult>; /** * Extract all metadata from MP4 file in a single operation * Parses the MP4 file once and extracts GPS, G-sensor, and thumbnail data * * @param file - MP4 file to parse * @returns Promise with all extracted metadata */ export declare function extractMetadata(file: File): Promise<ExtractedMetadata>; //# sourceMappingURL=parser.d.ts.map