# Presentation And Lifecycle This file owns user-visible workflow, presentation authority, presence, and Browser lifecycle promises. Component structure, CSS, exact copy, and routine UI tests belong in source code. ## Product Surface The first screen is the working tool, not a marketing page. Once site access is available, starting a share and joining a room are equally discoverable actions; joining expands the four-digit room form in place, while `/join` remains a direct entry route. Users never choose a media topology. Host entry requires both site access and a validated capability description. Initial entry, retry and password recovery load the same prerequisites; failed authentication cannot leave a later successful entry using absent capability state. A capability-load failure remains retryable and does not imply that a service is available or disabled. Viewer/Join entry does not need this Host-only description. The Host workspace centers the capture preview, room code, invitation and common share controls. The Viewer workspace centers one persistent 16:9 video stage, room identity, current state, roster, and one manual media-reconnect action. Controls and text must remain usable without overlap or horizontal overflow on desktop and mobile viewports. Personal room-tool presentation and incoming-route preferences are remembered within the same Browser origin across rooms and reloads. Their existing domain owners still apply capability and room-policy constraints. Remote-control shortcut choices follow this same boundary; App applies them only in memory. Restoring preferences never restores room admission, control grants, actual held input, passwords or message drafts, and never starts capture or remote control. A capable, opted-in authenticated room session outlives its current publication. Stopping capture retires media, not chat; restoring an existing room joins it without starting capture. Entering the page alone does not create a room. Room close, lost authority and page teardown still retire the session, including its App control connection and pending discovery. That retirement cannot wait for the denied page to unmount. Connected Viewers may keep interacting while the Host page is absent, provided the room service and their admitted sessions remain available. [Rooms and access](./rooms-access.md#room-interactions) owns interaction authority and retention; [status](../status.md#accepted-interaction-phase) owns release readiness. The Host can explicitly **Create room** before sharing. Chat and voice use tabs in the existing interaction window, including its detached presentation. Closing or changing that window does not leave voice or stop capture. Microphone, admission and connection states stay literal; an enabled microphone is not proof that someone is speaking. The [room voice contract](./rooms-access.md#room-voice) owns channel activation and membership, independently of the window and picture publication. The visible voice roster follows connected room members immediately; the server's reconnect grace does not keep a departed person on screen. On capable desktop browsers, the interaction window can move to a Document Picture-in-Picture window. It retains the admitted room session's messages, reactions and draft. Read visibility and guidance follow its current document. Closing the window returns it to the page; room retirement or opener teardown closes it, including a late asynchronous open. Browser window support does not promise game-overlay transparency, click-through or exclusive-fullscreen coverage. Desktop Piik App opens this same application in the system Browser. Its startup surface offers Local and temporary public invitation; the running App is already available to its approved Sites before either mode starts. Browser pages share one App entry across platforms; discovery and authorized health determine its connection state. Android adds an explicit wake action. Browser and camera actions retain their own capability checks. A Site's explicit App action discovers the local approval page, where the user confirms its exact origin. The launcher lists approvals and revokes each independently. Starring an external Site makes an ordinary App launch open its fixed address without starting a room. Starring the current App-owned Site records its launch selection instead: the next App run starts that mode and enters its fresh ready address. The current runtime's exact origins determine ownership; a temporary invitation hostname alone does not. Without a startup choice, the launcher opens. This preference grants no access or capture permission. Its launcher checkbox can clear an App-owned choice; revoking its current origin also clears it. Other approvals leave the choice intact. Older saved temporary URLs have no ownership information: start the Site from the launcher and select the startup checkbox again on its current entry. Explicit CLI entry keeps precedence. The ready App button and terminal launcher address return to its management page in every mode. A pending or healthy Local/public room keeps its startup selection; reopening the launcher does not stop or replace that room. After a failed attempt has fully retired, the launcher can retry or select the other mode in the same App run. Changing a healthy room's mode requires restarting App. An App-launched tab selects that process's control endpoint and retains the selection through reloads in its Browser session. If that endpoint becomes unavailable, discovery stays with it; a new explicit launch selects another App. Endpoint selection does not grant Site access or capture permission. Activating a page supplies native capability without restarting its room or healthy media session. The shared App entry stays in the header while selecting a source; a successful connection refreshes the open selector's list. An already approved exact origin needs no repeat confirmation, but the page still verifies authorized App health. Closing the selector does not cancel the separate site approval. Existing Browser shares stay unchanged when App connects; explicit source replacement uses the current share's source transaction. App-created Local/public-invite Host pages open at their automatically approved loopback origin. The shared App button reflects verified authorized health, including activation through another entry and return to an activated page; a remembered activation alone cannot show readiness. Idle verification holds no media session or polling loop. Viewer links opened at that activated origin may use the same running App without changing the Viewer UI. Starting a share offers the Browser picker and any exact App-owned native windows. It never chooses a window automatically. A reproduced Browser-window, capture, or background failure is required before introducing an embedded Web runtime on desktop. The Android App uses that same system-browser workflow. Recording consent and foreground services remain platform-owned. Its startup page and site management reuse the shared launcher. Waking App or navigating to a site never grants native permission. A pending system permission stays with its current native request while the user enters App and returns to the browser. App returns after the requested capture preparation completes, including source audio; video readiness alone does not complete that operation. Opening the system Browser is an asynchronous convenience action. One pending OS handoff is allowed; a slow or failed handler cannot block readiness or App exit. The console retains the entry address and reports the underlying error. The App does not terminate the user's browser to enforce a handoff deadline. Server and App share one control layout and vocabulary. Deployment capabilities may fix a control on or off, but do not remove its place in the interface; disabled controls explain their reason in text and pure-visual modes. Real workflow differences remain explicit: site authorization, opt-in diagnostics and the capture/audio capabilities of the connected device are not alternate versions of the product UI. A remembered App activation permits discovery when choosing a source or receiving media; it does not make App a prerequisite for sharing. Idle Host pages hold no App control session. The shared source selector orders Browser, Camera, Window and Screen, defaulting to Window after App detection. An App that provides only a system picker gets one combined choice in place of Window and Screen. Browser and Camera choices require their respective Browser APIs; temporary restrictions keep a supported choice disabled. Without an App, the selector defaults to the first supported Browser or Camera choice. Discovery never blocks Browser selection or overrides an explicitly chosen tab. Refresh remains reachable after failed App discovery; pending attempts are shared, completed failures do not suppress later discovery. Cancelling the selector or ending a share releases its unused control session; an obsolete operation cannot install or retire another operation's media. Cancellation covers discovery and the opening handshake, not just a connection returned later. Camera thumbnails own only temporary preview inputs; leaving their tab or picker retires them. An active shared camera is borrowed, never reopened or stopped by preview. Optional native ingress uses an already available connection without another scan. If it is not ready at Browser startup, that share keeps Browser senders. Native Host startup acquires its required Browser media connection before starting capture. Cancellation owns that connection immediately, while native share ownership and required audio tracks come from the accepted App response. Browser initialization failure remains distinct from capture permission failure. A reachable Piik App with an incompatible control protocol is distinct from an absent App. Without an explicitly selected endpoint, discovery continues looking for a compatible process before reporting the mismatch. The source selector retains Browser operation and offers update/refresh guidance. Discovery metadata may grow, while known identity and capability types remain validated. Missing optional capabilities are unavailable; control commands and responses retain their strict protocol contract. An empty source list means enumeration succeeded for the selected category. Connection, capture-capability and enumeration failures keep their own feedback. Discovery has one bounded deadline that allows time for browser local-network consent; a failed fetch alone cannot establish that consent was denied. Optional Viewer reception uses Browser media immediately when the browser reports that local App access still needs consent or is denied. It rechecks permission on a later connection attempt; a later grant does not replace healthy Browser media. App Local needs no cross-address-space consent. Browsers without a permission query retain bounded discovery. ## Visual Language Chinese, English, and pure-visual modes are three expressions of the same typed state and command catalog. On first use, the App and Server UI match the Browser's primary system language against registered locales, using English when none matches. Simplified Chinese and English catalogs are complete; Traditional Chinese, Japanese and Korean UI catalogs provide partial translations with English fallback. System-language matching distinguishes Chinese scripts, including `zh-TW`, `zh-HK` and `zh-Hant` for Traditional Chinese. The website retains its separate bilingual presentation. Additional UI languages use the existing dropdown alongside pure-visual mode. Chinese and English remain direct controls; the third control retains the last extra language or visual choice for the current page. Selecting an inactive choice switches to it; selecting it again or using its adjacent arrow opens the menu. Language and visual mode keep their independent stored preferences. Pure-visual mode remains an explicit choice. An explicit later choice is persisted and takes precedence over that default, including App launch handoff. Explicit launcher choices apply only to the presentation domains the user chose. Older launchers cannot distinguish defaults from explicit choices; updated Sites preserve their saved preferences when receiving those unmarked hints. The App console uses its own supported presentation languages and falls back to English for additional UI languages. Text modes use concise copy. The [visual language](./visual-language.md) is the single owner of illustrative roles and objects, semantic colour, panel grammar, motion, accessible input and responsive hierarchy. ## Playback Ownership One `