code wiki / _hdl_build / nx_video_embed.nx
nx_video_embed.nx
buildroot/runtime/_hdl_build/nx_video_embed.nx
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
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 20 | const VE_TARGET: *u8 = "web_assets/video_embed.html" as *u8 |
| 21 | const VE_LOADER: *u8 = "web_assets/embed.js" as *u8 |
| 22 | const VE_DEMO: *u8 = "web_assets/video_embed_demo.html" as *u8 |
functions
| 24 | func 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 } |
| 25 | func 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 } |
| 28 | func ve_emit_target() -> i64 |
| 97 | func ve_emit_loader() -> i64 |
| 149 | func ve_emit_demo() -> i64 |
| 180 | func main() -> i64 |