HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
This report summarizes scanner evidence for video-dev/hls.js, a TypeScript project with 17,028 GitHub stars. SynthScan examined 137,471 lines of code across 284 source files, recording 163 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 163 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 66 finding(s).
Which changes need focused human review? 163 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 163 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/types.d.ts | 1 | // Import type descriptions for global mocha functions `describe`, `it`, `beforeEach`, etc... | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 241 | #EXT-X-DISCONTINUITY | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 401 | fileSequence3.ts | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 421 | fileSequence9.ts | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 521 | COMMENT | |
| LOW | tests/unit/controller/level-helper.ts | 541 | fileSequence5.ts | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 561 | #EXTINF:6, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 581 | fileSequence5.ts | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 761 | }); | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 781 | #EXTINF:6, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 801 | #EXT-X-PART:DURATION=2,URI="ll.m4s?segment=fileSequence7.1.m4s" | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 961 | #EXTINF:2.500000, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 981 | #EXT-X-PART:DURATION=1.000000,URI="720p_9_1.m4v" | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1001 | #EXT-X-TARGETDURATION:3 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1021 | #EXT-X-PART:DURATION=0.500000,URI="720p_9_2.m4v" | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1101 | expect(details2.playlistParsingError).to.be.null; | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1141 | fileSequence15.ts | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1221 | #EXT-X-SERVER-CONTROL:CAN-SKIP-UNTIL=36 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1241 | #EXTINF:6, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1261 | #EXTINF:6, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1341 | #EXT-X-SERVER-CONTROL:CAN-SKIP-UNTIL=36 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1401 | #EXT-X-MAP:URI="video_init.mp4" | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1461 | }); | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1481 | #EXT-X-DISCONTINUITY | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1601 | #EXT-X-DISCONTINUITY-SEQUENCE:31 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1621 | #EXT-X-TARGETDURATION:3 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1661 | #EXT-X-VERSION:6 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1861 | video_5429.m4s | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1941 | #EXT-X-PART:DURATION=0.500000,URI="part_2002_0.m4s",INDEPENDENT=YES | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 1981 | #EXTINF:3.989333, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2001 | #EXT-X-PROGRAM-DATE-TIME:2026-08-04T07:31:49.179+00:00 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2021 | #EXT-X-PART:DURATION=0.490667,URI="part_1_2000_2.m4s",INDEPENDENT=YES | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2041 | #EXT-X-PART:DURATION=0.490667,URI="part_1_2001_6.m4s",INDEPENDENT=YES | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2061 | #EXT-X-PROGRAM-DATE-TIME:2026-08-04T07:31:29.121+00:00 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2081 | #EXTINF:4.039156, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2101 | #EXT-X-PROGRAM-DATE-TIME:2026-08-04T07:32:05.248+00:00 | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2141 | #EXTINF:2.000, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2181 | #EXTINF:2.000, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2221 | #EXTINF:4.0, no desc | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2321 | }); | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2341 | #EXTINF:4.0, no desc | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2401 | const playlist1 = `#EXTM3U | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2421 | 20260408T181648.m4v | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2441 | #EXTINF:4.000, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2461 | #EXTINF:4.000, | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2481 | #EXT-X-PROGRAM-DATE-TIME:2026-04-08T18:17:16.125Z | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2541 | }); | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2561 | #EXTINF:4.0, no desc | COMMENT |
| LOW | tests/unit/controller/level-helper.ts | 2581 | 10.m4s | COMMENT |
| LOW | tests/unit/controller/cmcd-controller.ts | 21 | #EXT-X-PROGRAM-DATE-TIME:2024-05-02T18:03:57.020+00:00 | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 321 | it('X-RESUME-OFFSET values of interstitials scheduled at the same time are cumulative', function () { | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 501 | }, | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 741 | }, | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 1121 | COMMENT | |
| LOW | tests/unit/controller/interstitials-controller.ts | 2021 | describe('Live start', function () { | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 2441 | #EXT-X-DATERANGE:ID="pre-resume-at-t15",CLASS="com.apple.hls.interstitial",START-DATE="2024-02-23T15:00:00.000Z",CUE="PR | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 2461 | #EXT-X-VERSION:7 | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 2621 | #EXTINF:6.5, | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 2641 | #EXTINF:6.5, | COMMENT |
| LOW | tests/unit/controller/interstitials-controller.ts | 2661 | #EXTINF:6.5, | COMMENT |
| 37 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/metrics.js | 49 | function timeRangeCanvasonMouseDown(evt) { | CODE |
| LOW | demo/metrics.js | 71 | function timeRangeCanvasonMouseMove(evt) { | CODE |
| LOW | demo/metrics.js | 105 | function timeRangeCanvasonMouseOut(evt) { | CODE |
| LOW | demo/main.js | 1478 | function getDemoConfigPropOrDefault(propName, defaultVal) { | CODE |
| LOW | demo/main.js | 1532 | function onConfigPersistenceChanged(event) { | CODE |
| LOW | demo/canvas.js | 294 | function canvasBufferTimeRangeUpdate( | CODE |
| LOW | demo/chart/chartjs-horizontal-bar.ts | 217 | export function applyChartInstanceOverrides(chart) { | CODE |
| LOW | tests/test-streams.js | 31 | function createTestStreamWithConfig(target, config) { | CODE |
| LOW | tests/unit/events.js | 4 | function getAllCapsSnakeCaseToCamelCase(eventType) { | CODE |
| LOW | tests/unit/controller/abr-controller.ts | 405 | function getMultiChannelAudioLevels(): { | CODE |
| LOW | tests/unit/controller/base-stream-controller.ts | 109 | function levelDetailsWithEndSequenceVodOrLive( | CODE |
| LOW | tests/unit/controller/base-stream-controller.ts | 968 | function createMediaFragWithInitSegment(encrypted: boolean = false) { | CODE |
| LOW | tests/unit/controller/subtitle-stream-controller.ts | 282 | function buildEncryptedSubtitleFrag() { | CODE |
| LOW | tests/unit/controller/buffer-controller-operations.ts | 60 | function setSourceBufferBufferedRange( | CODE |
| LOW | tests/unit/controller/level-helper.ts | 2702 | function expectPlaylistParsingError(object: any, message: string) { | CODE |
| LOW | tests/unit/controller/stream-controller.ts | 1234 | function attachMediaAndStubTracker( | CODE |
| LOW | tests/unit/controller/interstitials-controller.ts | 79 | function expectItemToHaveProperties( | CODE |
| LOW | tests/unit/controller/fragment-tracker.ts | 630 | function triggerFragLoadedAndFragBuffered(hls: Hls, fragment: Fragment) { | CODE |
| LOW | tests/unit/controller/error-controller.ts | 1167 | function expectFatalErrorEventToStopPlayer( | CODE |
| LOW | tests/unit/loader/m3u8-parser.ts | 3532 | function expectPlaylistParsingError(object: any, message: string) { | CODE |
| LOW | tests/unit/remux/passthrough-remuxer.ts | 473 | function markVideoInitSegmentEncrypted( | CODE |
| LOW | tests/functional/auto/testbench.js | 8 | function setupConsoleLogRedirection() { | CODE |
| LOW | docs/API.md | 2298 | function createHlsIframesOnlyIfNeeded() { | CODE |
| LOW | src/utils/mediacapabilities-helper.ts | 53 | export function requiresMediaCapabilitiesDecodingInfo( | CODE |
| LOW | src/utils/mediacapabilities-helper.ts | 116 | export function getMediaDecodingInfoPromise( | CODE |
| LOW | src/utils/mediacapabilities-helper.ts | 280 | function getVariantDecodingBitrate(level: Level): number { | CODE |
| LOW | src/utils/mp4-tools.ts | 897 | function parseSupplementalDoViCodec( | CODE |
| LOW | src/utils/discontinuities.ts | 18 | export function shouldAlignOnDiscontinuities( | CODE |
| LOW | src/utils/rendition-helper.ts | 216 | function logStartCodecCandidateIgnored(codeSet: string, reason: string) { | CODE |
| LOW | src/utils/rendition-helper.ts | 420 | export function findClosestLevelWithAudioGroup( | CODE |
| LOW | src/utils/level-helper.ts | 625 | export function reassignFragmentLevelIndexes(levels: Level[]) { | CODE |
| LOW | src/utils/level-helper.ts | 636 | function notEqualAfterStrippingQueries( | CODE |
| LOW | src/utils/error-helper.ts | 50 | export function getLoaderConfigWithoutReties( | CODE |
| LOW | src/utils/user-agent.ts | 41 | export function userAgentHevcSupportIsInaccurate() { | CODE |
| LOW | src/utils/imsc1-ttml-parser.ts | 264 | function parseHoursMinutesSecondsFrames(timeAttributeValue, rateInfo): number { | CODE |
| LOW | src/utils/mediakeys-helper.ts | 24 | export function keySystemFormatToKeySystemDomain( | CODE |
| LOW | src/utils/mediakeys-helper.ts | 48 | export function keySystemIdToKeySystemDomain( | CODE |
| LOW | src/utils/mediakeys-helper.ts | 63 | export function keySystemDomainToKeySystemFormat( | CODE |
| LOW | src/utils/mediakeys-helper.ts | 112 | export function getSupportedMediaKeySystemConfigurations( | CODE |
| LOW | src/utils/mediakeys-helper.ts | 141 | function createMediaKeySystemConfigurations( | CODE |
| LOW | src/utils/keysystem-util.ts | 24 | export function convertDataUriToArrayBytes( | CODE |
| LOW | src/utils/codecs.ts | 93 | export function areCodecsMediaSourceSupported( | CODE |
| LOW | src/utils/codecs.ts | 106 | function isCodecMediaSourceSupported( | CODE |
| LOW | src/utils/codecs.ts | 119 | export function videoCodecPreferenceValue( | CODE |
| LOW | src/utils/codecs.ts | 129 | export function codecsSetSelectionPreferenceValue(codecSet: string): number { | CODE |
| LOW | src/utils/codecs.ts | 152 | function getCodecCompatibleNameLower( | CODE |
| LOW | src/utils/codecs.ts | 224 | export function pickMostCompleteCodecName( | CODE |
| LOW | src/utils/encryption-methods-util.ts | 9 | export function getAesModeFromFullSegmentMethod( | CODE |
| LOW | src/utils/timescale-conversion.ts | 36 | export function toMpegTsClockFromTimescale( | CODE |
| LOW | src/controller/iframe-controller.ts | 349 | function createHlsImageIFramesOnly(Base: typeof HlsIFramesOnlyClass) { | CODE |
| LOW | src/controller/base-stream-controller.ts | 2861 | export function fragOverlapsQueuedInterstitial( | CODE |
| LOW | src/controller/buffer-controller.ts | 2511 | function mediaErrorRecoveryMessage( | CODE |
| LOW | src/controller/fragment-finders.ts | 110 | function fragmentWithinFastStartSwitch( | CODE |
| LOW | src/controller/fragment-finders.ts | 138 | export function fragmentWithinToleranceTest( | CODE |
| LOW | src/controller/error-controller.ts | 644 | export function createDoNothingErrorAction(resolved?: boolean): IErrorAction { | CODE |
| LOW | src/controller/level-controller.ts | 792 | function setTrackCodecsAndReturnSupported( | CODE |
| LOW | src/loader/m3u8-parser.ts | 890 | function findFragmentWithStartDate( | CODE |
| LOW | src/loader/m3u8-parser.ts | 1078 | function assignMultipleMediaPlaylistTagOccuranceError( | CODE |
| LOW | src/loader/m3u8-parser.ts | 1088 | function assignMustAppearBeforeSegmentsError( | CODE |
| LOW | src/loader/fragment.ts | 488 | function getOwnPropertyDescriptorFromPrototypeChain( | CODE |
| 6 more matches not shown… | ||||