pub struct MonitorCaptureSourceBuilder { /* private fields */ }
Expand description
Provides a easy to use builder for the monitor capture source.
Implementations§
Source§impl MonitorCaptureSourceBuilder
impl MonitorCaptureSourceBuilder
pub fn set_monitor_id_raw<T: Into<ObsString> + Sync + Send>( self, monitor_id_raw: T, ) -> Self
Sourcepub fn set_capture_cursor(self, capture_cursor: bool) -> Self
pub fn set_capture_cursor(self, capture_cursor: bool) -> Self
Sets whether the cursor should be captured.
Sourcepub fn set_compatibility(self, compatibility: bool) -> Self
pub fn set_compatibility(self, compatibility: bool) -> Self
Compatibility mode for the monitor capture source.
Source§impl MonitorCaptureSourceBuilder
impl MonitorCaptureSourceBuilder
Sourcepub fn get_monitors() -> Result<Vec<Sendable<DisplayInfo>>>
pub fn get_monitors() -> Result<Vec<Sendable<DisplayInfo>>>
Gets all available monitors
pub fn set_monitor(self, monitor: &Sendable<DisplayInfo>) -> Self
Source§impl MonitorCaptureSourceBuilder
impl MonitorCaptureSourceBuilder
Sourcepub fn set_capture_method(self, method: ObsDisplayCaptureMethod) -> Self
pub fn set_capture_method(self, method: ObsDisplayCaptureMethod) -> Self
Sets the capture method for the monitor capture source. Only MethodWgc works for now as the other DXGI method does not work and only records a black screen (Failed to DuplicateOutput1) Workaround for black screen bug: issue
Trait Implementations§
Source§impl Debug for MonitorCaptureSourceBuilder
impl Debug for MonitorCaptureSourceBuilder
Source§impl ObsObjectBuilder for MonitorCaptureSourceBuilder
impl ObsObjectBuilder for MonitorCaptureSourceBuilder
fn new<'async_trait, T>( name: T, runtime: ObsRuntime, ) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>
fn get_settings(&self) -> &ObsData
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn get_hotkeys(&self) -> &ObsData
fn get_hotkeys_updater(&mut self) -> &mut ObsDataUpdater
fn build<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<ObjectInfo, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§impl ObsSourceBuilder for MonitorCaptureSourceBuilder
impl ObsSourceBuilder for MonitorCaptureSourceBuilder
fn add_to_scene<'a, 'async_trait>(
self,
scene: &'a mut ObsSceneRef,
) -> Pin<Box<dyn Future<Output = Result<ObsSourceRef, ObsError>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'a: 'async_trait,
Auto Trait Implementations§
impl Freeze for MonitorCaptureSourceBuilder
impl !RefUnwindSafe for MonitorCaptureSourceBuilder
impl Send for MonitorCaptureSourceBuilder
impl Sync for MonitorCaptureSourceBuilder
impl Unpin for MonitorCaptureSourceBuilder
impl !UnwindSafe for MonitorCaptureSourceBuilder
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