@loaders.gl/video
Version:
Framework-independent loaders and writers for video (MP4, WEBM, ...)
26 lines (25 loc) • 774 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import parseVideo from "./lib/parsers/parse-video.js";
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
const VERSION = typeof "4.3.2" !== 'undefined' ? "4.3.2" : 'latest';
/**
* Loads a platform-specific image type that can be used as input data to WebGL textures
*/
export const VideoLoader = {
dataType: null,
batchType: null,
name: 'Video',
id: 'video',
module: 'video',
version: VERSION,
extensions: ['mp4'],
mimeTypes: ['video/mp4'],
// tests: arrayBuffer => Boolean(getBinaryImageMetadata(new DataView(arrayBuffer))),
options: {
video: {}
},
parse: parseVideo
};