mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Fix typecheck, lint and build
This commit is contained in:
@@ -40,6 +40,7 @@ export default tseslint.config(
|
||||
'packages/mp3-encoder/build',
|
||||
'eslint.config.mjs',
|
||||
'docs/.vitepress/cache',
|
||||
'test/public',
|
||||
]
|
||||
}
|
||||
);
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
"test": "npx vitest --run",
|
||||
"test-node": "npm run test node/",
|
||||
"test-browser": "npm run test browser/",
|
||||
"check": "rm -rf dist/modules && tsc -p src && tsc -p packages/mp3-encoder/src --noEmit && tsc -p tsconfig.vitest.json --noEmit && tsc -p scripts --noEmit && tsc -p tsconfig.vite.json --noEmit",
|
||||
"check": "rm -rf dist/modules && tsc -p src --stripInternal false && tsc -p packages/mp3-encoder/src --noEmit && tsc -p tsconfig.vitest.json --noEmit && tsc -p scripts --noEmit && tsc -p tsconfig.vite.json --noEmit",
|
||||
"check-docblocks": "tsx scripts/check-docblocks.ts dist/mediabunny.d.ts",
|
||||
"docs:dev": "vitepress dev docs",
|
||||
"docs:build": "npm run build && npm run docs:generate && vitepress build docs && npm run examples:build && cp dist/mediabunny.d.ts dist-docs/",
|
||||
|
||||
@@ -479,6 +479,14 @@ export class AdtsInputFormat extends InputFormat {
|
||||
|
||||
const TS_PACKET_SIZE = 188;
|
||||
|
||||
/**
|
||||
* MPEG Transport Stream (MPEG-TS) file format.
|
||||
*
|
||||
* Do not instantiate this class; use the {@link MPEG_TS} singleton instead.
|
||||
*
|
||||
* @group Input formats
|
||||
* @public
|
||||
*/
|
||||
export class MpegTsInputFormat extends InputFormat {
|
||||
/** @internal */
|
||||
async _canReadInput(input: Input) {
|
||||
@@ -573,6 +581,11 @@ export const ADTS = /* #__PURE__ */ new AdtsInputFormat();
|
||||
*/
|
||||
export const FLAC = /* #__PURE__ */ new FlacInputFormat();
|
||||
|
||||
/**
|
||||
* MPEG-TS input format singleton.
|
||||
* @group Input formats
|
||||
* @public
|
||||
*/
|
||||
export const MPEG_TS = /* #__PURE__ */ new MpegTsInputFormat();
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
/*!
|
||||
* Copyright (c) 2025-present, Vanilagy and contributors
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { SAMPLES_PER_AAC_FRAME } from '../adts/adts-demuxer';
|
||||
import { MAX_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user