Repository navigation
|
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 |
Answered by
daxpedda
May 20, 2023
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 |
3 replies
Answer selected by
daxpedda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This using a builder pattern is probably not the best API design.
What you have to keep in mind is that
JsValues are just references to things that live in the JS runtime.cloneing doesn't actually clone the data, it just clones the reference.You don't really have to be concerned about exclusive access because
MediaRecorderOptionsisn'tSendorSync, so it can never be called from two places at the same time.