pub struct SCRecordingOutputConfiguration { /* private fields */ }Expand description
Configuration for recording output
Implementations§
Source§impl SCRecordingOutputConfiguration
impl SCRecordingOutputConfiguration
Sourcepub fn with_output_url(self, path: &Path) -> Self
pub fn with_output_url(self, path: &Path) -> Self
Set the output file URL
Sourcepub fn with_video_codec(self, codec: SCRecordingOutputCodec) -> Self
pub fn with_video_codec(self, codec: SCRecordingOutputCodec) -> Self
Set the video codec
Sourcepub fn video_codec(&self) -> SCRecordingOutputCodec
pub fn video_codec(&self) -> SCRecordingOutputCodec
Get the video codec
Sourcepub fn with_output_file_type(self, file_type: SCRecordingOutputFileType) -> Self
pub fn with_output_file_type(self, file_type: SCRecordingOutputFileType) -> Self
Set the output file type
Sourcepub fn output_file_type(&self) -> SCRecordingOutputFileType
pub fn output_file_type(&self) -> SCRecordingOutputFileType
Get the output file type
Sourcepub fn available_video_codecs_count(&self) -> usize
pub fn available_video_codecs_count(&self) -> usize
Get the number of available video codecs
Sourcepub fn available_video_codecs(&self) -> Vec<SCRecordingOutputCodec>
pub fn available_video_codecs(&self) -> Vec<SCRecordingOutputCodec>
Get all available video codecs
Returns a vector of all video codecs that can be used for recording.
Sourcepub fn available_output_file_types_count(&self) -> usize
pub fn available_output_file_types_count(&self) -> usize
Get the number of available output file types
Sourcepub fn available_output_file_types(&self) -> Vec<SCRecordingOutputFileType>
pub fn available_output_file_types(&self) -> Vec<SCRecordingOutputFileType>
Get all available output file types
Returns a vector of all file types that can be used for recording output.
pub fn as_ptr(&self) -> *const c_void
Trait Implementations§
impl Send for SCRecordingOutputConfiguration
impl Sync for SCRecordingOutputConfiguration
Auto Trait Implementations§
impl Freeze for SCRecordingOutputConfiguration
impl RefUnwindSafe for SCRecordingOutputConfiguration
impl Unpin for SCRecordingOutputConfiguration
impl UnwindSafe for SCRecordingOutputConfiguration
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