pub fn add_custom_video_track(
        &self,
        track_name: &str,
        codec_id: &str,
        codec_context: &[u8],
        track_settings: &k4a_record_video_settings_t,
    ) -> Result<(), Error> {
        let track_name = CString::new(track_name).unwrap_or_default();
        let codec_id = CString::new(codec_id).unwrap_or_default();
        Error::from((self.api_record.k4a_record_add_custom_video_track)(
            self.handle,
            track_name.as_ptr(),
            codec_id.as_ptr(),
            codec_context.as_ptr(),
            codec_context.len() as size_t,
            track_settings,
        ))
        .to_result(())
    }
/// Adds custom video tracks to the recording
Adds custom video tracks to the recording
Adds custom video tracks to the recording
pub fn add_custom_video_track(
        &self,
        track_name: &str,
        codec_id: &str,
        codec_context: &[u8],
        track_settings: &k4a_record_video_settings_t,
    ) -> Result<(), Error> {
        let track_name = CString::new(track_name).unwrap_or_default();
        let codec_id = CString::new(codec_id).unwrap_or_default();
        Error::from((self.api_record.k4a_record_add_custom_video_track)(
            self.handle,
            track_name.as_ptr(),
            codec_id.as_ptr(),
            codec_context.as_ptr(),
            codec_context.len() as size_t,
            track_settings,
        ))
        .to_result(())
    }
pub fn add_custom_video_track ( & self , track_name : & str , codec_id : & str , codec_context : & [ u8 ] , track_settings : & k4a_record_video_settings_t , ) -> Result < ( ) , Error > { let track_name = CString :: new ( track_name ) . unwrap_or_default ( ) ; let codec_id = CString :: new ( codec_id ) . unwrap_or_default ( ) ; Error :: from ( ( self . api_record . k4a_record_add_custom_video_track ) ( self . handle , track_name . as_ptr ( ) , codec_id . as_ptr ( ) , codec_context . as_ptr ( ) , codec_context . len ( ) as size_t , track_settings , ) ) . to_result ( ( ) ) }
Adds custom video tracks to the recording
Adds custom video tracks to the recording
&self
track_name
&str
codec_id
&str
codec_context
&[u8]
track_settings
&k4a_record_video_settings_t