pub struct ReplayBufferOutput { /* private fields */ }
Implementations§
Source§impl ReplayBufferOutput
impl ReplayBufferOutput
Sourcepub fn set_path<T: Into<ObsString> + Sync + Send>(self, path: T) -> Self
pub fn set_path<T: Into<ObsString> + Sync + Send>(self, path: T) -> Self
The path the recording should be saved to
pub fn set_bitrate(self, bitrate: i64) -> Self
pub fn set_codec_type(self, codec_type: i64) -> Self
pub fn set_muxer_settings<T: Into<ObsString> + Sync + Send>( self, muxer_settings: T, ) -> Self
pub fn set_max_time_sec(self, max_time_sec: i64) -> Self
pub fn set_max_size_mb(self, max_size_mb: i64) -> Self
Sourcepub fn set_split_file(self, split_file: bool) -> Self
pub fn set_split_file(self, split_file: bool) -> Self
Whether the recording should be split into multiple files and merged later
Sourcepub fn set_allow_overwrite(self, allow_overwrite: bool) -> Self
pub fn set_allow_overwrite(self, allow_overwrite: bool) -> Self
Whether it should be permitted to overwrite the old file
Sourcepub fn set_directory<T: Into<ObsString> + Sync + Send>(
self,
directory: T,
) -> Self
pub fn set_directory<T: Into<ObsString> + Sync + Send>( self, directory: T, ) -> Self
The directory the recording should be saved to
Sourcepub fn set_format<T: Into<ObsString> + Sync + Send>(self, format: T) -> Self
pub fn set_format<T: Into<ObsString> + Sync + Send>(self, format: T) -> Self
The format to use for the file name of the recording. e.g. “%CCYY-%MM-%DD %hh-%mm-%ss” Code for formatting can be found here
Sourcepub fn set_extension<T: Into<ObsString> + Sync + Send>(
self,
extension: T,
) -> Self
pub fn set_extension<T: Into<ObsString> + Sync + Send>( self, extension: T, ) -> Self
The extension to use for the file name of the recording (without the dot, e.g. “mpr”)
Sourcepub fn set_allow_spaces(self, allow_spaces: bool) -> Self
pub fn set_allow_spaces(self, allow_spaces: bool) -> Self
Whether spaces are allowed in the file name
Trait Implementations§
Source§impl ObsObjectBuilder for ReplayBufferOutput
impl ObsObjectBuilder for ReplayBufferOutput
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,
Auto Trait Implementations§
impl Freeze for ReplayBufferOutput
impl !RefUnwindSafe for ReplayBufferOutput
impl Send for ReplayBufferOutput
impl Sync for ReplayBufferOutput
impl Unpin for ReplayBufferOutput
impl !UnwindSafe for ReplayBufferOutput
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