Skip to content

fix: handle client certificates#13

Merged
mertalev merged 6 commits into
mainfrom
fix/handle-client-cert
Mar 12, 2026
Merged

fix: handle client certificates#13
mertalev merged 6 commits into
mainfrom
fix/handle-client-cert

Conversation

@mertalev

@mertalev mertalev commented Feb 7, 2026

Copy link
Copy Markdown
Member

This PR adds a localhost proxy backed by a shared URLSession. It uses a task-level delegate which allows auth challenges and such to be handled by the session-level delegate. The choice of a proxy is because using an AVAssetResourceLoaderDelegate means needing to implement an HLS client for HLS compatibility while a proxy can be dumb and let AVPlayer handle everything.

The session determines whether it's used, and this in turn is set in the main app when the session gets a client auth or basic auth challenge. This means the change has no effect for most users. There is a smaller change on how video info is fetched, which helps to avoid UI stutters as the calls no longer block the thread.

@mertalev mertalev force-pushed the fix/handle-client-cert branch from 5fab6b0 to 4d92b86 Compare February 7, 2026 03:03
@mertalev mertalev force-pushed the fix/handle-client-cert branch 2 times, most recently from 8340e30 to 0a80cd0 Compare March 6, 2026 09:26
@mertalev mertalev merged commit e53f727 into main Mar 12, 2026
8 checks passed
@mertalev mertalev deleted the fix/handle-client-cert branch March 12, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants