pub enum BrowserCapture {}
Trait Implementations§
Source§impl BrowserVideoCapture for BrowserCapture
impl BrowserVideoCapture for BrowserCapture
Source§fn channels_count(&self) -> u32
fn channels_count(&self) -> u32
Get the number of channels in the capture buffer.
Source§fn buffer_size(&self) -> usize
fn buffer_size(&self) -> usize
Get the size of the capture buffer in bytes.
Source§fn capture(&self, source: &HtmlVideoElement, mode: CaptureMode) -> (u32, u32)
fn capture(&self, source: &HtmlVideoElement, mode: CaptureMode) -> (u32, u32)
Capture a frame from the video element.
Source§fn read(&self, source: &HtmlVideoElement, mode: CaptureMode) -> Vec<u8> ⓘ
fn read(&self, source: &HtmlVideoElement, mode: CaptureMode) -> Vec<u8> ⓘ
Read the raw data from the video element.
Source§impl CaptureArea for BrowserCapture
impl CaptureArea for BrowserCapture
Source§fn capture_width(&self) -> u32
fn capture_width(&self) -> u32
Get the width of the available capture area in pixels.
Source§fn capture_height(&self) -> u32
fn capture_height(&self) -> u32
Get the height of the available capture area in pixels.
Source§fn set_capture_width(&self, width: u32)
fn set_capture_width(&self, width: u32)
Set the width for the capture area.
Source§fn set_capture_height(&self, height: u32)
fn set_capture_height(&self, height: u32)
Set the height for the capture area.
Source§fn capture_size(&self) -> (u32, u32)
fn capture_size(&self) -> (u32, u32)
Get the size of the available capture area in pixels.
Source§fn capture_area(&self) -> u32
fn capture_area(&self) -> u32
Get the capture area in pixels.
Source§fn set_capture_size(&self, width: u32, height: u32)
fn set_capture_size(&self, width: u32, height: u32)
Set the size for the capture area.
Source§impl Clone for BrowserCapture
impl Clone for BrowserCapture
Source§fn clone(&self) -> BrowserCapture
fn clone(&self) -> BrowserCapture
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BrowserCapture
impl Debug for BrowserCapture
Source§impl From<BrowserCapture> for Box<dyn BrowserVideoCapture>
impl From<BrowserCapture> for Box<dyn BrowserVideoCapture>
Source§fn from(value: BrowserCapture) -> Self
fn from(value: BrowserCapture) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BrowserCapture
impl PartialEq for BrowserCapture
impl Eq for BrowserCapture
impl StructuralPartialEq for BrowserCapture
Auto Trait Implementations§
impl Freeze for BrowserCapture
impl RefUnwindSafe for BrowserCapture
impl Send for BrowserCapture
impl Sync for BrowserCapture
impl Unpin for BrowserCapture
impl UnwindSafe for BrowserCapture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more