feat(android): MediaUploader — a phone puts films on a relay, in resumable pieces
MediaOwner signs owner requests and MediaUploader speaks the piece protocol of media put (window, retries, resync after a lost answer). MediaSealer .sealStream seals a film to a file; MediaGrant.encode/capabilityUrl make the link to share. Owner signatures and encoded grants are pinned by new vectors; scripts/media-live-kotlin.ts runs the uploader against a real TS relay with a lost answer and a refused piece injected. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -113,6 +113,15 @@ New package **`@shade/media`** — see `docs/media.md`.
|
||||
`ShadeMedia.liveMediaSource(grant)` play live WebM/fMP4 in ExoPlayer,
|
||||
with late joining from a keyframe, gap recovery and the timeline rebased
|
||||
to 0:00.
|
||||
- **Uploads from Kotlin.** `MediaUploader` puts sealed files on a relay from
|
||||
a phone: one PUT up to 16 MiB, larger ones in pieces with the relay's
|
||||
window, retries and a resync after a lost answer — the same protocol as
|
||||
`media put`. `MediaOwner` signs owner requests (byte for byte against the
|
||||
new owner vector), `MediaSealer.sealStream` seals a film to a file, and
|
||||
`MediaGrant.encode()` / `capabilityUrl(page)` make the link to share
|
||||
(against a new grant-encode vector). `scripts/media-live-kotlin.ts` runs it
|
||||
against a real TS relay with a lost answer and a refused piece injected;
|
||||
TS reads the film back byte for byte.
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user