Repository navigation
docs: design for Ariadne media (images from URLs, backgrounds, video, audio, card) - #929
Merged
Merged
Conversation
added 2 commits
October 30, 2026 21:40
… audio, card) Images by URL through the host's network policy and credentials, decoded off the frame; background images on windows and groups; video and audio widgets with FFmpeg + SDL3 natively and the browser's decoders in the wasm pages; an ari-media variant that links SDL3 audio without GL; a generic card component. Splits the work into PRs M1-M6.
This was referenced Oct 31, 2026
transfix
added a commit
that referenced
this pull request
Nov 2, 2026
Media M1 from the design in #929 (docs/roadmap/ARIADNE_MEDIA.md): an `image:` names a picture by URI (http(s)://, file://, cvc://, state://) in every host, with fit (contain/cover/fill), shape (rect/circle), an optional `auth:` credential that never reaches state, and a loading/ready/failed status. A per-Runtime media::ImageCache fetches through the host's network, decodes (cvc::decode_image: stb, libwebp, ImageMagick by magic bytes, size caps checked from the header), downscales and fits off the frame, and the backends free pictures through Backend::drop_image. Snapshots and `ari test` wait for the pictures a frame drew. The media tests read their encoded fixture back before removing it, since Windows won't delete a file that is still open.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Design note for generic media in Ariadne (docs/roadmap/ARIADNE_MEDIA.md). It covers what social-style documents need (profiles with banners and avatars, feed cards with image/video/audio attachments), in every host: arigl, ari with FTXUI and tvision, and the arigl-web and ari.html pages.
image:from URLs.src:/bind:take a URI. Fetches go through the host's net policy, with optionalauth: NAME(the token never reaches state, errors or cache keys). Decoding (stb, libwebp) and fit (contain|cover|fill,shape: circle) run off the frame. Placeholder and error rasters keep the layout fixed. Terminals honour transparency.background:on window/overlay/group. ImGui draws it behind the content. Terminals draw dimmed half-blocks behind the text, orterminal: bannerputs the image as a row above the content.cardcomponent in the component library.cvc_medialibrary: SDL3 audio moves out of cvcGL (cvcGL keeps an alias). A separateari-mediapackage (bin/ari-media) links SDL3 audio and FFmpeg (ffmpeg-lgpl, shared). The leanaristays lean.video:/audio:widgets: core-drawn controls, a state machine bound to state, and an FFmpeg + SDL3 player. Over SSH, players default toremote, with an "Open" action throughopen-url(Ariadne: sign in with any OpenID Connect provider (oidc-sign-in, open-url; nicotina L7, L9) #916);--media-playforces local playback.auth:hold). Frames are copied into the raster, so both pages and every widget path behave alike. The doc records the tradeoff against a<video>overlay.Docs only.