Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

999 B
Raw Blame

Film module contract

Each films//film.js exports meta and build(stage, {lang, signal}). Metadata owns title, dimensions, duration, CSS, subset fonts and Opus/AAC paths. Builders return a Film with render(seconds). Frames reconstruct from the requested film time; a scene does not own a second playback clock.

The player owns one native audio element, loading, playback and selection. Optional meta.holdEnd retains the ending without a center playback cover. At that endpoint, the player marks the visible stage with data-ending-idle; film-local CSS may animate its mascot outside the completed film/audio clock, respecting reduced motion. Leaving the viewport or page pauses that decoration. Keep film-local strings in strings.js and use module-relative URLs. Shared visual helpers and scene geometry belong to A. Runtime fonts are the supplied language subsets; changing copy requires rebuilding those subsets from the original production sources. Keep their license notices with them.