code wiki / _hdl_build / nx_video_embed.nx

nx_video_embed.nx

buildroot/runtime/_hdl_build/nx_video_embed.nx

23026 B191 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind orphan librarytopic video
docsdependenciesstructsconstsfunctions

about

nx_video_embed.nx -- SOVEREIGN EMBEDDABLE VIDEO ROOM for any third-party site (operator: make nishifamily.com/video "s class exceed ... as an embeddeable on sites"). This is the cross-origin counterpart to nx_nishi_embed: nx_nishi_embed -> <nishi-embed> Shadow-DOM, for FIRST-PARTY same-origin capabilities (search/estate/doc) nx_video_embed -> <nishi-video> origin-isolated SANDBOXED IFRAME, for the CROSS-ORIGIN, camera/mic, secret-bearing media-room case -- where (per nx_embed_exceed's own honest counter-axis) a real browsing-context boundary is REQUIRED, not optional. = capability-adaptive isolation. We exceed YouTube/Vimeo/Jitsi/Whereby embeds on the MEASURABLE axes (zero third-party JS / zero trackers / zero cookies / least-privilege allow= / patent-clean WHT codec path) and honestly concede the axes we are behind (hardware decode, CDN scale) -- graded by nx_video_embed_exceed. Emits THREE artifacts (all hand-authored, zero dependencies), reusing the PROVEN vroom relay routes (post?/stream?/frames?/apost?/astream? -- same-origin, relative, so they resolve inside the iframe): web_assets/video_embed.html -- the slim embed-target room (the iframe content); ?room&mode&name&parent web_assets/embed.js -- the publisher loader: <nishi-video> custom element + postMessage bridge web_assets/video_embed_demo.html -- a pretend third-party page that drops <nishi-video> + logs typed events Deployable via nx_aw_push; gated by nx_video_embed_gate; measured by nx_video_embed_exceed. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_video_embed.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

20const VE_TARGET: *u8 = "web_assets/video_embed.html" as *u8
21const VE_LOADER: *u8 = "web_assets/embed.js" as *u8
22const VE_DEMO: *u8 = "web_assets/video_embed_demo.html" as *u8

functions

24func ve_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
25func ve_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
28func ve_emit_target() -> i64
97func ve_emit_loader() -> i64
149func ve_emit_demo() -> i64
180func main() -> i64