feat: add interactive live preview server with web UI#13
Merged
Conversation
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.
Adds
tellur-live, an interactive preview server that hot-reloadstimeline
cdylibplugins and streams frames to a bundled React/Viteweb UI. Lets you iterate on a timeline without recompiling the host
binary, with a scrub-precise frame API alongside h264 segment streaming
for smooth playback.
tellur-live(new crate): plugin host (libloading-based hot-reload,filesystem-watch rebuild), HTTP server with a small REST surface, and
a CLI binary.
export_timeline!("id", "Title", build_fn)/export_timeline_collection!macros expose aTimelineCollectionfrom a
cdylib./api/info,/api/frame(single PNG / RGBA),/api/stream(chunked frame stream for scrubbing),
/api/video.mp4(h264 forsmooth playback),
/api/events(SSE).transport (play / pause / loop / speed), timeline editor with viewport
bar, resolution + FPS presets, automatic cache invalidation on
plugin reload. Hybrid playback path keeps h264 for playback and RGBA
for scrub.
examples/demo_timeline_plugin.rscdylib + shareddemo_scene/module): a 7.6 s instrument-themed motion-graphics pieceacross four scenes (OVERTURE / FIELD / SCAN / RESOLVE) with a
persistent HUD scaffold, layered DropShadow halo + drop, and a cached
HudVectorComponentwhose Hash/Eq is driven byPhase+ a sectiondiscriminator so the rasterized HUD is reused across the steady-state
span of the timeline.
examples/demo_timeline_mp4.rsreuses the samedemo_scenemodule via#[path]so the live preview and the offlineencoder always render the same scene.