[][src]Struct web_sys::MediaRecorder

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

The MediaRecorder object

MDN Documentation

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

Methods

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

impl MediaRecorder[src]

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

The stream getter

MDN Documentation

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

impl MediaRecorder[src]

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

The state getter

MDN Documentation

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

impl MediaRecorder[src]

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

The mimeType getter

MDN Documentation

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

impl MediaRecorder[src]

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

The ondataavailable getter

MDN Documentation

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

impl MediaRecorder[src]

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

The ondataavailable setter

MDN Documentation

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

impl MediaRecorder[src]

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

The onerror getter

MDN Documentation

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

impl MediaRecorder[src]

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

The onerror setter

MDN Documentation

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

impl MediaRecorder[src]

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

The onstart getter

MDN Documentation

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

impl MediaRecorder[src]

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

The onstart setter

MDN Documentation

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

impl MediaRecorder[src]

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

The onstop getter

MDN Documentation

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

impl MediaRecorder[src]

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

The onstop setter

MDN Documentation

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

impl MediaRecorder[src]

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

The onwarning getter

MDN Documentation

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

impl MediaRecorder[src]

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

The onwarning setter

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<JsValue> for MediaRecorder[src]

impl AsRef<MediaRecorder> for MediaRecorder[src]

impl AsRef<EventTarget> for MediaRecorder[src]

impl AsRef<Object> 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 Clone for MediaRecorder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Deref for MediaRecorder[src]

type Target = EventTarget

The resulting type after dereferencing.

impl Debug for MediaRecorder[src]

impl JsCast for MediaRecorder[src]

fn has_type<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value has a type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn is_type_of(val: &JsValue) -> bool[src]

Performs a dynamic check to see whether the JsValue provided is a value of this type. Read more

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 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 WasmDescribe for MediaRecorder[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 OptionIntoWasmAbi for MediaRecorder[src]

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

impl OptionFromWasmAbi for MediaRecorder[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi