Skip to main content

playback_supported

Function playback_supported 

Source
pub fn playback_supported() -> bool
Expand description

Whether in-process playback exists on this target: false on wasm, which has no background thread to drive the steps from (drive the page over the dayscript WebSocket transport there, docs/web.md).

A UI should gate its Play control on this rather than calling and ignoring the Err: an enabled button that silently does nothing is worse than a disabled one. Recording has no such limit: it rides the event observer on the main thread and works on every target.