Skip to main content

Module web

Module web 

Source
Expand description

Wasm bindings for ssruntime.

This module mirrors the C FFI surface in src/ffi/mod.rs 1:1 for JS/TS Players. POD return types (ss_event_instance_info, ss_effect_event_info) are exposed as wasm-bindgen wrapper classes (WebEventInstanceInfo, WebEffectEventInfo) because wasm-bindgen cannot expose #[repr(C)] structs by value.

Not exposed:

  • ss_runtime_set_log_callback, which requires bridging a JS Function and a js-sys dependency.
  • ss_runtime_ssab_schema_version.

Structs§

SSRuntimeContext
SSRuntimeEffectSlot
JS-friendly wrapper of EffectSlot. Same conceptual flow as the C FFI:
SSRuntimeInstanceSlot
JS-friendly wrapper of InstanceSlot. Same conceptual flow as the C FFI:
SSRuntimeResource
WebEffectEventInfo
JS-friendly mirror of ss_effect_event_info (src/types.rs).
WebEventInstanceInfo
JS-friendly mirror of ss_event_instance_info (src/types.rs).

Enums§

WebCoordinateSystem
WebOrigin
WebPlaybackDirection
WebPlaybackStyle
WebUnit

Functions§

ss_runtime_hash_string