test(mediabunny): [PKG-MB-09] start hour-scale installed playback checks

This commit is contained in:
Harvey Zhao committed 2026-09-16 11:20:49 +08:00
1 parent 5795492f0f
commit d71b6fea38
11 files changed
+301 -13

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import { hash } from '../refactor/scripts/releases.mjs'
const root = fileURLToPath(new URL('../', import.meta.url))
const output = path.resolve(root, process.argv[2] || 'test/browser/media/hls')
const duration = Number(process.argv[3] || 12)
assert(Number.isInteger(duration) && duration >= 12 && duration <= 3600, 'Duration must be 12..3600 whole seconds')
assert(Number.isInteger(duration) && duration >= 12 && duration <= 14400, 'Duration must be 12..14400 whole seconds')
assert(!fs.existsSync(output), 'Output must be a new directory; never overwrite frozen media')
const ffmpeg = process.env.ARTPLAYER_FFMPEG || 'ffmpeg'
const version = execFileSync(ffmpeg, ['-version'], { encoding: 'utf8' }).split(/\r?\n/)[0]