Audio-only and background playback rehearsal
Status: source implemented and under PR review. The relay is not enabled. Full hosted
release remains blocked by the existing RELEASE_BLOCKER.
Intended phone test
BASIC opens the ordinary VRDex profile or event, opts into the operator trial, and presses Play. Audio only selects the native audio rendition. The retained player continues across VRDex navigation. The phone test then checks app switching, locking the screen, system playback controls and returning to the page.
flowchart TD
A[Signed BASIC account] --> B[Enable local trial routing]
B --> C[Exact public profile or event]
C --> D[Play in retained player]
D --> E[Audio only]
E --> F[Switch apps or lock phone]
F --> G[Return and inspect playback]
The October 28 protected test already established native synthetic audio/video and real VRCDN HLS video on BASIC's iPhone. Its copy-AAC rendition passed FFprobe and decode checks. This trial finishes integration into the actual product. It does not repeat transport discovery or substitute another standalone test page. See the original experiment and approved design.
Finite integration contract
Legacy event playback restores a suspended audio context when the document becomes visible again, without replacing its stream. If the browser requires another gesture, playback returns to paused with a blocked-playback signal. Pending restoration cannot undo a later Pause or Close. This does not provide a separate audio rendition or establish physical iPhone background acceptance. Repeated app switches invalidate pending restoration; a hidden-page rejection does not pause the viewer's still-active playback intent. Foreground restoration that never settles expires after ten seconds, exposing gesture-required playback instead of permanently blocking future restoration. The failure watchdog resets its evidence while restoration is pending, so it cannot tear down a media resume that is still making its bounded attempt.
The foreground playback owner requests the browser's playback audio-session
type when that API is available. Ownership transfers without resetting the type;
Pause, Close, blocked playback, terminal end/unsupported/failed reasons or failed initial startup restores the previous type unless another
caller changed it. Internal pauses during a rendition switch retain the claim
until the switch succeeds or fails. Mode switches also expire after ten seconds,
pausing the adapter and ending transient pause suppression.
Unsupported or rejected Audio Session access does not block ordinary playback.
Direct streams allow fifteen seconds for initial startup or an established stall
without progress before exposing unavailable playback. Growing startup buffers
restart that allowance; the deadline also samples buffer growth without element
progress events. Repeated events without growth do not extend it. The existing media stays mounted for
recovery. Retry resumes genuinely paused media in place, while an unpaused,
starved stream reconnects on the first tap rather than falsely reporting playback.
Growing buffers cannot extend initial startup beyond sixty seconds in the current
foreground window. Returning from the background starts a fresh startup window.
Recoverable stalls retain foreground ownership and the music audio-session claim;
starting another surface pauses the stalled player before it can recover.
Reason-less recovery keeps ownership before the first frame too; terminal
reasons, Play exceptions, source replacement and revocation release it explicitly.
If an established stall makes no progress for a second fifteen-second window,
it becomes a terminal failure even when the browser emits no further events.
Terminal reasons pause the adapter and invalidate pending Play before releasing
foreground ownership, including native lineup recovery loops.
MPEG-TS network completion lets buffered media drain. Profile playback ends on
the media element's actual ended event, not the earlier transport EOF signal.
Previously established system controls remain during a reason-less stall while
the same player generation still has mounted media; terminal failures clear them.
Hard transport errors still allow a fresh connection. Pause, Close and background visibility clear the deadline;
a still-buffering stream receives a fresh deadline when visible again.
Automatic video pop-out
The retained player's Media Session registers enterpictureinpicture in video
mode when the adapter permits PiP. Legacy playback uses its request title while
playing or paused when relay metadata is unavailable. Ended and unsupported
playback clear system controls; Twitch retains its embed's own metadata.
On supported browsers, switching away can open the active video without
another button press. Only the current, playing video may respond. Audio mode,
Close and stale playback generations cannot open a video window.
Chrome's automatic PiP requirements include browser permission or sufficient media engagement and audible playback. Browsers may reject the action or the request; playback continues normally. The existing manual control remains a fallback. Automatic Safari/iPhone behavior still needs physical-device qualification and must not be claimed from a desktop test or this handler alone.
The trial reuses existing Convex grants, public-source authorization and revision checks, worker identity and epoch, source leases, registry, publisher, readiness and gateway authorization. Browser opt-in changes only that viewer's routing; it cannot activate deployment operations. The global relay flags remain off.
A trusted internal operation activates one immutable configuration: exact signed operator, public context and source, worker binding, gateway origin, evidence and absolute expiry. Changing that configuration invalidates activation. A trial ID cannot be rebound. At most two grants can be issued during that trial, including released grants. These are bearer capabilities, so this is not a hard count of physical listeners.
The selected host is a finite Vercel Sandbox with one vCPU, 2 GiB RAM, no snapshot and a maximum fifteen-minute lifetime. The original shared FFmpeg packager copies H264/AAC into both HLS renditions. Only the selected rendition reaches the browser. Its scratch directory must be a verified bounded tmpfs; startup refuses an ordinary filesystem or privileged worker process. The host qualification proved a 512 MiB tmpfs rejects a 600 MiB allocation. It did not prove relay delivery.
Memory storage reserves bounded segment reads, verifies completed-file stability, and retains finite rolling windows plus a thirty-second retirement grace. Gateway URLs remain usable for that grace after publication advances, with current grant, lease and epoch checks on every read. One source acquisition is allowed. Forwarded input bytes, delivered body bytes and request count have independent limits. Copied URLs debit the same aggregate delivery allowance. Malformed targets, unsupported methods and overlong URLs also consume the application request budget. HTTP parser rejects are outside that counter, with separate header, connection and VM lifetime bounds. Expiry or budget exhaustion stops the worker. Physical packager cleanup precedes an exact-owner terminal observation; acknowledgment failure remains visible while local storage closes. The HTTP server also closes at expiry. The VM's independent hard deadline is a final containment boundary. Byte allowances do not represent a total platform billing cap or prove zero in-flight network overshoot.
The initial limits must be selected from measured source bitrate before activation. Reaching a byte limit may end playback before fifteen minutes. Operator shutdown must disable the trial and verify source, process and VM cleanup.
Policy preserved
The normal twelve-hour grant policy remains unchanged. Native requests read existing authority and do not renew viewer grants. Expiry while backgrounded requires deliberate resume. Native HTTP demand sustains the source without page JavaScript during the existing idle grace period.
The first test establishes one-source audio-only and background playback. Automatic handoff from video when backgrounding and DJ changes while the phone is suspended require separate qualification. Previously downloaded segments cannot be recalled by revoking their grant; future gateway requests recheck authority.
Evidence still required
Before activation: source and backend tests, Linux packaged-artifact verification, real packager cleanup on source limit and expiry, timestamp/codec/decode checks, process memory and scratch bounds, exact operator lookup, and root review of the binding, limits, cost and cleanup plan. Then test the actual provider and retained player before handing the ready URL to BASIC. Physical phone acceptance remains separate from desktop browser evidence.
The earlier finite audio producer and delivery comparison is historical work in
commit 139e715b3; those unused components are excluded from this integration.
The native-request renewal proposal is deferred.
Historical Linux synthetic qualification, November 13
Superseded for activation by the November 17 replacement qualification below. These results describe only the earlier artifact.
The exact bundled artifact passed on the selected one-vCPU/2-GiB target with a verified 512-MiB tmpfs. Both original packager renditions passed codec and decode checks. The ordinary case used one acquisition, 338294 forwarded input bytes and 425632 retained bytes. The 32768-byte input limit case stopped after forwarding 28741 bytes and hit its limit once. No FFmpeg process or scratch file remained. The command completed in 7531 ms. Whole-VM cgroup memory peak was 504573952 bytes (including binary setup); Node RSS at the result was 96530432 bytes. These are separate from retained media memory. The scratch mount was removed; the release owner records the independent VM deadline readback separately. No provider or deployment credential was present in this synthetic test.
Evidence bundle SHA256: aca5962d99562a9769024b5326e75df544e25b73b12eab8e7ca97de910b5cae0.
Source changes that affect the bundle require matching artifact qualification.
Actual public-provider, deployed-Convex, retained-browser and phone results remain
separate pending steps.
VRCDN startup timestamp correction
A live BASICBIT rehearsal exposed equal decoding timestamps on the first two video packets. The worker now advances only the second equal timestamp by one time-base tick, preserving presentation order. Later duplicate or reset timestamps still reach the existing fatal timestamp check. Audio remains copied AAC. Verify the replacement bundle before any new trial; the earlier aca5962d evidence does not qualify changed bytes.
Replacement qualification, November 17
The startup correction requires FFmpeg 5 or later with the setts bitstream filter.
The finite host pins and verifies FFmpeg 6.0 and FFprobe 6.0 before starting.
Self-hosted workers must provide that capability before using this bundle.
Replacement bundle SHA256: 901df11a945968305d7349d27fb173102d824b8770f159fc0cb413db4f759b40.
It passed the Linux dual-rendition codec/decode, source byte limit, request limit
and cleanup qualification on the same one-vCPU/2-GiB host class. Peak whole-host
memory was 506560512 bytes, below the 70-percent admission limit. No FFmpeg child
or scratch file remained. The qualification VM subsequently stopped.
The real BASICBIT provider test also played the audio-only rendition through the retained web player across page navigation, while the video transport stopped. Physical iPhone background acceptance remains separate from this desktop result.