onError now receives the element's MediaError, so an app can tell an unsupported source (code 4,
MEDIA_ERR_SRC_NOT_SUPPORTED, as with AVI, WMV or ASF) from other failures. Handlers that take no
argument are unaffected.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Pointer movement and presses now count as activity anywhere inside the
player's box. The picture can sit on a canvas stacked above the frame,
where the pointer never reaches the frame's own elements, so the
controls did not fade back in. The autoHideControls doc comment now
describes the real default.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
streamMediaIdentifier now forwards only the quality and start query parameters to CarrierNode, so browser-unplayable WMV/ASF video can stream as a seekable live H.264 copy. Other query parameters are not forwarded, and audio-only playback is unchanged.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
- Add resume, speed selection, and controls-free media mode
- Run Trivy daily and secrets/code scans weekly
- Document new MediaPlayer options in README
MediaViewer committed these changes to its vendored shared copy
(e83afad, ca8a89e) without upstreaming them, so the next shared sync
would have removed them from MediaViewer and broken its build.
Ported here as a three-way merge against 74942e5, the snapshot
MediaViewer last synced from:
- media.MediaRecord.Rating, read in FindMedia and returned by ToJSON,
with the rating column added in migrate.go
- tagSuggestions counts media items through the library's visibility
rules instead of raw media_tags rows
- MediaPlayer autoplayMuted prop (defaults to false, so existing
callers are unaffected)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
A later vendored sync reverted the test typing fixes from 23bd5b2 and the
line-length formatting from 50461c0, which fails the ty check in consumers
that run `ty check --error-on-warning`. Restore them:
- assert the narrowed upgraded/found values before use
- suppress the intentional _FakeDatabase argument mismatches with
`# ty: ignore[invalid-argument-type]`
- reformat the long lines to the package's line-length of 100
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Fixed findings from the audit reports (SECURITY, QUALITY, PERFORMANCE):
- P-001 · Unbounded per-session timing maps and no connection cap in the sync hub
- S-001 · Anonymous `PUT /access` switches off login for every guarded route
- S-002 · Malformed cookies crash the Node middleware and fail requests in Java
- S-004 · Anonymous `PUT /sync` writes unvalidated JSON into shared session state
Also includes the pre-existing uncommitted changes in web-ui, README, shared-styles and the .changeset files, as the owner asked.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>