[][src]Struct web_sys::MediaRecorder

#[repr(transparent)]pub struct MediaRecorder { /* fields omitted */ }

The MediaRecorder class.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

Methods

impl MediaRecorder[src]

pub fn stream(&self) -> MediaStream[src]

Getter for the stream field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder, MediaStream

impl MediaRecorder[src]

pub fn state(&self) -> RecordingState[src]

Getter for the state field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder, RecordingState

impl MediaRecorder[src]

pub fn mime_type(&self) -> String[src]

Getter for the mimeType field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn ondataavailable(&self) -> Option<Function>[src]

Getter for the ondataavailable field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn set_ondataavailable(&self, value: Option<&Function>)[src]

Setter for the ondataavailable field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn onerror(&self) -> Option<Function>[src]

Getter for the onerror field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn set_onerror(&self, value: Option<&Function>)[src]

Setter for the onerror field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn onstart(&self) -> Option<Function>[src]

Getter for the onstart field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn set_onstart(&self, value: Option<&Function>)[src]

Setter for the onstart field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn onstop(&self) -> Option<Function>[src]

Getter for the onstop field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn set_onstop(&self, value: Option<&Function>)[src]

Setter for the onstop field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn onwarning(&self) -> Option<Function>[src]

Getter for the onwarning field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn set_onwarning(&self, value: Option<&Function>)[src]

Setter for the onwarning field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn new_with_media_stream(
    stream: &MediaStream
) -> Result<MediaRecorder, JsValue>
[src]

The new MediaRecorder(..) constructor, creating a new instance of MediaRecorder.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder, MediaStream

impl MediaRecorder[src]

pub fn new_with_media_stream_and_media_recorder_options(
    stream: &MediaStream,
    options: &MediaRecorderOptions
) -> Result<MediaRecorder, JsValue>
[src]

The new MediaRecorder(..) constructor, creating a new instance of MediaRecorder.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder, MediaRecorderOptions, MediaStream

impl MediaRecorder[src]

pub fn new_with_audio_node(node: &AudioNode) -> Result<MediaRecorder, JsValue>[src]

The new MediaRecorder(..) constructor, creating a new instance of MediaRecorder.

MDN Documentation

This API requires the following crate features to be activated: AudioNode, MediaRecorder

impl MediaRecorder[src]

pub fn new_with_audio_node_and_u32(
    node: &AudioNode,
    output: u32
) -> Result<MediaRecorder, JsValue>
[src]

The new MediaRecorder(..) constructor, creating a new instance of MediaRecorder.

MDN Documentation

This API requires the following crate features to be activated: AudioNode, MediaRecorder

impl MediaRecorder[src]

pub fn new_with_audio_node_and_u32_and_options(
    node: &AudioNode,
    output: u32,
    options: &MediaRecorderOptions
) -> Result<MediaRecorder, JsValue>
[src]

The new MediaRecorder(..) constructor, creating a new instance of MediaRecorder.

MDN Documentation

This API requires the following crate features to be activated: AudioNode, MediaRecorder, MediaRecorderOptions

impl MediaRecorder[src]

pub fn is_type_supported(type_: &str) -> bool[src]

The isTypeSupported() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn pause(&self) -> Result<(), JsValue>[src]

The pause() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn request_data(&self) -> Result<(), JsValue>[src]

The requestData() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn resume(&self) -> Result<(), JsValue>[src]

The resume() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn start(&self) -> Result<(), JsValue>[src]

The start() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn start_with_time_slice(&self, time_slice: i32) -> Result<(), JsValue>[src]

The start() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

impl MediaRecorder[src]

pub fn stop(&self) -> Result<(), JsValue>[src]

The stop() method.

MDN Documentation

This API requires the following crate features to be activated: MediaRecorder

Methods from Deref<Target = EventTarget>

pub fn add_event_listener_with_callback(
    &self,
    type_: &str,
    listener: &Function
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

pub fn add_event_listener_with_callback_and_bool(
    &self,
    type_: &str,
    listener: &Function,
    options: bool
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &Function,
    options: bool,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

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>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>[src]

The dispatchEvent() method.

MDN Documentation

This API requires the following crate features to be activated: Event, EventTarget

pub fn remove_event_listener_with_callback(
    &self,
    type_: &str,
    listener: &Function
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

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>
[src]

The removeEventListener() method.

MDN Documentation

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>
[src]

The removeEventListener() method.

MDN Documentation

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>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventListenerOptions, EventTarget

pub fn remove_event_listener_with_callback_and_bool(
    &self,
    type_: &str,
    listener: &Function,
    options: bool
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

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>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Trait Implementations

impl AsRef<EventTarget> for MediaRecorder[src]

impl AsRef<JsValue> for MediaRecorder[src]

impl AsRef<MediaRecorder> for MediaRecorder[src]

impl AsRef<Object> for MediaRecorder[src]

impl Clone for MediaRecorder[src]

impl Debug for MediaRecorder[src]

impl Deref for MediaRecorder[src]

type Target = EventTarget

The resulting type after dereferencing.

impl Eq for MediaRecorder[src]

impl From<JsValue> for MediaRecorder[src]

impl From<MediaRecorder> for JsValue[src]

impl From<MediaRecorder> for EventTarget[src]

impl From<MediaRecorder> for Object[src]

impl FromWasmAbi for MediaRecorder[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for MediaRecorder[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a MediaRecorder[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for MediaRecorder[src]

impl OptionFromWasmAbi for MediaRecorder[src]

impl OptionIntoWasmAbi for MediaRecorder[src]

impl<'a> OptionIntoWasmAbi for &'a MediaRecorder[src]

impl PartialEq<MediaRecorder> for MediaRecorder[src]

impl RefFromWasmAbi for MediaRecorder[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

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

impl StructuralEq for MediaRecorder[src]

impl StructuralPartialEq for MediaRecorder[src]

impl WasmDescribe for MediaRecorder[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.