mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
core/scene's media_path joined an https src to the composition's folder, so a remote clip was refused as "<dir>/https:/…: no video track" (seven snapcn components in #13: hero-launch, laptop-frame, phone-frame, phone-stack, reel-collage, reel-wall, screen-recording). raea_io_net::cache::remote(src) gives an http(s) src's file through cache::fetch (keyed by the URL, which is in the composition's source, so a render stays a function of its code; under $RAEA_CACHE beside the render cache) and None for a file. The page's video elements, the export's sounds and live play's video list ask it first. A src that can't be fetched refuses the frame saying why: "video <url>: HTTP 404 Not Found", or "(not in raea's cache): not sent, because RAEA_OFFLINE is set". The cache's status errors no longer name the URL twice. bench/remote-media/check.sh: a local server's red clip plays (centre 252,0,0), plays again offline from the cache, an uncached URL offline refuses, a 404 refuses with its status. Before: all four read the URL as a path. laptop-frame (snapcn) renders its remote clip, 240 frames at 7.0 ms a frame.