pub struct AudioRecorder { /* private fields */ }Implementations§
Source§impl AudioRecorder
impl AudioRecorder
pub fn status(self) -> ReadSignal<RecorderStatus>
pub fn completed(self) -> ReadSignal<Option<RecordedAudio>>
pub fn analyser(self) -> ReadSignal<Option<AudioAnalyser>>
pub fn elapsed(self) -> ReadSignal<Duration>
Sourcepub fn source_availability(
self,
) -> ReadSignal<Option<RecordingSourceAvailability>>
pub fn source_availability( self, ) -> ReadSignal<Option<RecordingSourceAvailability>>
Browser-reported availability of the active Recording Source.
Interruption does not pause Recording or elapsed time. This observation does not inspect application control of the track’s enabled state.
pub fn microphone(self) -> ReadSignal<MicrophoneStatus>
Sourcepub fn requested_constraints(self) -> ReadSignal<Option<RecordingConstraints>>
pub fn requested_constraints(self) -> ReadSignal<Option<RecordingConstraints>>
Constraints snapshotted by the most recently accepted start request.
Sourcepub fn constraint_capabilities(
self,
) -> ReadSignal<Option<RecorderConstraintCapabilities>>
pub fn constraint_capabilities( self, ) -> ReadSignal<Option<RecorderConstraintCapabilities>>
Constraint fields that the browser reports recognizing.
Recognition does not imply that a particular value can be acquired.
Sourcepub fn settings(self) -> ReadSignal<Option<RecordingSourceSettings>>
pub fn settings(self) -> ReadSignal<Option<RecordingSourceSettings>>
Effective settings reported by the acquired Recording Source.
Sourcepub fn media_type(self) -> ReadSignal<Option<String>>
pub fn media_type(self) -> ReadSignal<Option<String>>
Encoder media type selected for the current or most recent Recording.
Sourcepub fn outcome(self) -> ReadSignal<Option<RecordingOutcome>>
pub fn outcome(self) -> ReadSignal<Option<RecordingOutcome>>
Terminal outcome of the most recently accepted Recording, if any.
Sourcepub fn chunk_delivery_failure(
self,
) -> ReadSignal<Option<RecordingChunkDeliveryFailure>>
pub fn chunk_delivery_failure( self, ) -> ReadSignal<Option<RecordingChunkDeliveryFailure>>
Terminal incremental delivery failure for the current or most recent Recording.
pub fn start(self) -> Result<(), RecorderCommandError>
Sourcepub fn start_with_source(
self,
source: RecordingSource,
) -> Result<(), RecorderCommandError>
pub fn start_with_source( self, source: RecordingSource, ) -> Result<(), RecorderCommandError>
Start a Recording from one application-supplied live audio track.
Video tracks are ignored. The supplied audio track is never stopped by Recorder under this default preserve-tracks agreement.
pub fn pause(self) -> Result<(), RecorderCommandError>
pub fn resume(self) -> Result<(), RecorderCommandError>
Sourcepub fn request_chunk_boundary(self) -> Result<(), RecorderCommandError>
pub fn request_chunk_boundary(self) -> Result<(), RecorderCommandError>
Ask the browser to create a best-effort Recording Chunk boundary.
The request is available only to an opted-in Recording while active or paused. It does not promise exact timing, non-empty output, or an independently playable chunk.
pub fn stop(self) -> Result<(), RecorderCommandError>
pub fn cancel(self) -> Result<(), RecorderCommandError>
pub fn clear_completed(self)
Sourcepub fn take_completed(self) -> Option<RecordedAudio>
pub fn take_completed(self) -> Option<RecordedAudio>
Move the completed recording out without cloning its audio buffer.
Trait Implementations§
Source§impl Clone for AudioRecorder
impl Clone for AudioRecorder
Source§fn clone(&self) -> AudioRecorder
fn clone(&self) -> AudioRecorder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more