init commit
This commit is contained in:
34
remotion/node_modules/@remotion/media-parser/dist/is-audio-structure.js
generated
vendored
Normal file
34
remotion/node_modules/@remotion/media-parser/dist/is-audio-structure.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isAudioStructure = void 0;
|
||||
const isAudioStructure = (structure) => {
|
||||
if (structure.type === 'mp3') {
|
||||
return true;
|
||||
}
|
||||
if (structure.type === 'wav') {
|
||||
return true;
|
||||
}
|
||||
if (structure.type === 'aac') {
|
||||
return true;
|
||||
}
|
||||
if (structure.type === 'flac') {
|
||||
return true;
|
||||
}
|
||||
if (structure.type === 'iso-base-media') {
|
||||
return false;
|
||||
}
|
||||
if (structure.type === 'matroska') {
|
||||
return false;
|
||||
}
|
||||
if (structure.type === 'transport-stream') {
|
||||
return false;
|
||||
}
|
||||
if (structure.type === 'riff') {
|
||||
return false;
|
||||
}
|
||||
if (structure.type === 'm3u') {
|
||||
return false;
|
||||
}
|
||||
throw new Error(`Unhandled structure type: ${structure}`);
|
||||
};
|
||||
exports.isAudioStructure = isAudioStructure;
|
||||
Reference in New Issue
Block a user