Struct web_sys::MediaRecorder [−][src]
#[repr(transparent)]pub struct MediaRecorder { /* fields omitted */ }
Expand description
The MediaRecorder
class.
This API requires the following crate features to be activated: MediaRecorder
Implementations
Getter for the stream
field of this object.
This API requires the following crate features to be activated: MediaRecorder
, MediaStream
Getter for the state
field of this object.
This API requires the following crate features to be activated: MediaRecorder
, RecordingState
Getter for the mimeType
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Getter for the ondataavailable
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Setter for the ondataavailable
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Getter for the onerror
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Setter for the onerror
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Getter for the onstart
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Setter for the onstart
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Getter for the onstop
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Setter for the onstop
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Getter for the onwarning
field of this object.
This API requires the following crate features to be activated: MediaRecorder
Setter for the onwarning
field of this object.
This API requires the following crate features to be activated: MediaRecorder
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
.
This API requires the following crate features to be activated: MediaRecorder
, MediaStream
pub 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
The new MediaRecorder(..)
constructor, creating a new instance of MediaRecorder
.
This API requires the following crate features to be activated: AudioNode
, MediaRecorder
pub 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
pub 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
The isTypeSupported()
method.
This API requires the following crate features to be activated: MediaRecorder
The requestData()
method.
This API requires the following crate features to be activated: MediaRecorder
The start()
method.
This API requires the following crate features to be activated: MediaRecorder
Methods from Deref<Target = EventTarget>
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
The dispatchEvent()
method.
This API requires the following crate features to be activated: Event
, EventTarget
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListenerOptions
, EventTarget
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventListenerOptions
, EventTarget
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
Trait Implementations
Performs the conversion.
Performs the conversion.
type Target = EventTarget
type Target = EventTarget
The resulting type after dereferencing.
Dereferences the value.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T
. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
type Anchor = ManuallyDrop<MediaRecorder>
type Anchor = ManuallyDrop<MediaRecorder>
The type that holds the reference to 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 more
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for MediaRecorder
impl !Send for MediaRecorder
impl !Sync for MediaRecorder
impl Unpin for MediaRecorder
impl UnwindSafe for MediaRecorder
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more