Struct web_sys::MediaRecorder
source · #[repr(transparent)]pub struct MediaRecorder { /* private fields */ }
Expand description
The MediaRecorder
object
This API requires the following crate features to be activated: MediaRecorder
Implementations§
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn new_with_media_stream(
stream: &MediaStream
) -> Result<MediaRecorder, JsValue>
pub fn new_with_media_stream(
stream: &MediaStream
) -> Result<MediaRecorder, JsValue>
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
This API requires the following crate features to be activated: MediaRecorder
, MediaStream
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn new_with_media_stream_and_media_recorder_options(
stream: &MediaStream,
options: &MediaRecorderOptions
) -> Result<MediaRecorder, JsValue>
pub fn new_with_media_stream_and_media_recorder_options(
stream: &MediaStream,
options: &MediaRecorderOptions
) -> Result<MediaRecorder, JsValue>
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
This API requires the following crate features to be activated: MediaRecorder
, MediaRecorderOptions
, MediaStream
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn new_with_audio_node(node: &AudioNode) -> Result<MediaRecorder, JsValue>
pub fn new_with_audio_node(node: &AudioNode) -> Result<MediaRecorder, JsValue>
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
This API requires the following crate features to be activated: AudioNode
, MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn new_with_audio_node_and_u32(
node: &AudioNode,
output: u32
) -> Result<MediaRecorder, JsValue>
pub fn new_with_audio_node_and_u32(
node: &AudioNode,
output: u32
) -> Result<MediaRecorder, JsValue>
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
This API requires the following crate features to be activated: AudioNode
, MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn new_with_audio_node_and_u32_and_options(
node: &AudioNode,
output: u32,
options: &MediaRecorderOptions
) -> Result<MediaRecorder, JsValue>
pub fn new_with_audio_node_and_u32_and_options(
node: &AudioNode,
output: u32,
options: &MediaRecorderOptions
) -> Result<MediaRecorder, JsValue>
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
This API requires the following crate features to be activated: AudioNode
, MediaRecorder
, MediaRecorderOptions
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn is_type_supported(type_: &str) -> bool
pub fn is_type_supported(type_: &str) -> bool
The isTypeSupported()
method
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn request_data(&self) -> Result<(), JsValue>
pub fn request_data(&self) -> Result<(), JsValue>
The requestData()
method
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn stream(&self) -> MediaStream
pub fn stream(&self) -> MediaStream
The stream
getter
This API requires the following crate features to be activated: MediaRecorder
, MediaStream
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn state(&self) -> RecordingState
pub fn state(&self) -> RecordingState
The state
getter
This API requires the following crate features to be activated: MediaRecorder
, RecordingState
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn ondataavailable(&self) -> Option<Function>
pub fn ondataavailable(&self) -> Option<Function>
The ondataavailable
getter
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn set_ondataavailable(&self, ondataavailable: Option<&Function>)
pub fn set_ondataavailable(&self, ondataavailable: Option<&Function>)
The ondataavailable
setter
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn set_onerror(&self, onerror: Option<&Function>)
pub fn set_onerror(&self, onerror: Option<&Function>)
The onerror
setter
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn set_onstart(&self, onstart: Option<&Function>)
pub fn set_onstart(&self, onstart: Option<&Function>)
The onstart
setter
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn set_onstop(&self, onstop: Option<&Function>)
pub fn set_onstop(&self, onstop: Option<&Function>)
The onstop
setter
This API requires the following crate features to be activated: MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
source§impl MediaRecorder
impl MediaRecorder
sourcepub fn set_onwarning(&self, onwarning: Option<&Function>)
pub fn set_onwarning(&self, onwarning: Option<&Function>)
The onwarning
setter
This API requires the following crate features to be activated: MediaRecorder
Trait Implementations§
source§impl AsRef<EventTarget> for MediaRecorder
impl AsRef<EventTarget> for MediaRecorder
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for MediaRecorder
impl AsRef<JsValue> for MediaRecorder
source§impl AsRef<Object> for MediaRecorder
impl AsRef<Object> for MediaRecorder
source§impl Clone for MediaRecorder
impl Clone for MediaRecorder
source§fn clone(&self) -> MediaRecorder
fn clone(&self) -> MediaRecorder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaRecorder
impl Debug for MediaRecorder
source§impl From<JsValue> for MediaRecorder
impl From<JsValue> for MediaRecorder
source§fn from(obj: JsValue) -> MediaRecorder
fn from(obj: JsValue) -> MediaRecorder
source§impl From<MediaRecorder> for EventTarget
impl From<MediaRecorder> for EventTarget
source§fn from(obj: MediaRecorder) -> EventTarget
fn from(obj: MediaRecorder) -> EventTarget
source§impl From<MediaRecorder> for JsValue
impl From<MediaRecorder> for JsValue
source§fn from(obj: MediaRecorder) -> JsValue
fn from(obj: MediaRecorder) -> JsValue
source§impl From<MediaRecorder> for Object
impl From<MediaRecorder> for Object
source§fn from(obj: MediaRecorder) -> Object
fn from(obj: MediaRecorder) -> Object
source§impl FromWasmAbi for MediaRecorder
impl FromWasmAbi for MediaRecorder
source§impl<'a> IntoWasmAbi for &'a MediaRecorder
impl<'a> IntoWasmAbi for &'a MediaRecorder
source§impl IntoWasmAbi for MediaRecorder
impl IntoWasmAbi for MediaRecorder
source§impl JsCast for MediaRecorder
impl JsCast for MediaRecorder
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for MediaRecorder
impl OptionFromWasmAbi for MediaRecorder
source§impl<'a> OptionIntoWasmAbi for &'a MediaRecorder
impl<'a> OptionIntoWasmAbi for &'a MediaRecorder
source§impl OptionIntoWasmAbi for MediaRecorder
impl OptionIntoWasmAbi for MediaRecorder
source§impl RefFromWasmAbi for MediaRecorder
impl RefFromWasmAbi for MediaRecorder
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<MediaRecorder>
type Anchor = ManuallyDrop<MediaRecorder>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MediaRecorder
impl !Send for MediaRecorder
impl !Sync for MediaRecorder
impl Unpin for MediaRecorder
impl UnwindSafe for MediaRecorder
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more