mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
test(hls): [PKG-HLS-02] cover released contracts and real SDK playback
This commit is contained in:
1 parent
cbbdc03a7c
commit
33f6d19b77
55 files changed
+8678
-14
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# Deterministic HLS fixtures
|
||||
|
||||
Generated by `node scripts/generate-hls-fixture.mjs`, using FFmpeg recorded in manifest.json.
|
||||
No downloaded film or audio: testsrc2 supplies moving patterns, sine supplies 440/880 Hz audio.
|
||||
The 12-second master offers 160x90 and 320x180 AVC video, English/French AAC audio, and a
|
||||
separate video-only master for topology changes. Each media playlist is VOD with 2-second segments.
|
||||
|
||||
Segments use `.mpegts` so source tools cannot mistake MPEG transport streams for TypeScript.
|
||||
The HLS browser fixture serves them as video/mp2t. File contents and byte counts are checked
|
||||
against manifest.json before browser use. Tests need neither FFmpeg nor a remote media service.
|
||||
|
||||
To change the media, generate into a new directory, for example
|
||||
`node scripts/generate-hls-fixture.mjs refactor/.cache/hls-media-next`; inspect the output and
|
||||
update the media, manifest and browser evidence together. The script refuses existing directories.
|
||||
Set ARTPLAYER_FFMPEG to a particular FFmpeg executable if it is not on PATH. Re-encoding with
|
||||
another FFmpeg version is not expected to preserve bytes; do not overwrite hashes to silence drift.
|
||||
Reference in new issue
Block a user