-
The methods of MediaRecorderOptions (e.g. mime_type) take Link to the WebIDL: https://github.com/rustwasm/wasm-bindgen/blob/main/crates/web-sys/webidls/enabled/MediaRecorder.webidl |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This using a builder pattern is probably not the best API design. What you have to keep in mind is that You don't really have to be concerned about exclusive access because |
Beta Was this translation helpful? Give feedback.
This using a builder pattern is probably not the best API design.
What you have to keep in mind is that
JsValue
s are just references to things that live in the JS runtime.clone
ing doesn't actually clone the data, it just clones the reference.You don't really have to be concerned about exclusive access because
MediaRecorderOptions
isn'tSend
orSync
, so it can never be called from two places at the same time.