pub fn add_custom_subtitle_track(
        &self,
        track_name: &str,
        codec_id: &str,
        codec_context: &[u8],
        track_settings: &RecordSubtitleSettings,
    ) -> Result<(), Error> {
        let track_name = CString::new(track_name).unwrap_or_default();
        let codec_id = CString::new(codec_id).unwrap_or_default();
        Error::from_k4a_result_t(unsafe {
            (self.api_record.funcs.k4a_record_add_custom_subtitle_track)(
                self.handle,
                track_name.as_ptr(),
                codec_id.as_ptr(),
                codec_context.as_ptr(),
                codec_context.len(),
                &track_settings.value,
            )
        })
        .to_result(())
    }
/// Adds custom subtitle tracks to the recording
Adds custom subtitle tracks to the recording
Adds custom subtitle tracks to the recording
pub fn add_custom_subtitle_track(
        &self,
        track_name: &str,
        codec_id: &str,
        codec_context: &[u8],
        track_settings: &RecordSubtitleSettings,
    ) -> Result<(), Error> {
        let track_name = CString::new(track_name).unwrap_or_default();
        let codec_id = CString::new(codec_id).unwrap_or_default();
        Error::from_k4a_result_t(unsafe {
            (self.api_record.funcs.k4a_record_add_custom_subtitle_track)(
                self.handle,
                track_name.as_ptr(),
                codec_id.as_ptr(),
                codec_context.as_ptr(),
                codec_context.len(),
                &track_settings.value,
            )
        })
        .to_result(())
    }
pub fn add_custom_subtitle_track ( & self , track_name : & str , codec_id : & str , codec_context : & [ u8 ] , track_settings : & RecordSubtitleSettings , ) -> Result < ( ) , Error > { let track_name = CString :: new ( track_name ) . unwrap_or_default ( ) ; let codec_id = CString :: new ( codec_id ) . unwrap_or_default ( ) ; Error :: from_k4a_result_t ( unsafe { ( self . api_record . funcs . k4a_record_add_custom_subtitle_track ) ( self . handle , track_name . as_ptr ( ) , codec_id . as_ptr ( ) , codec_context . as_ptr ( ) , codec_context . len ( ) , & track_settings . value , ) } ) . to_result ( ( ) ) }
Adds custom subtitle tracks to the recording
Adds custom subtitle tracks to the recording
&self
track_name
&str
codec_id
&str
codec_context
&[u8]
track_settings
&RecordSubtitleSettings
&self
track_name
&str
codec_id
&str
codec_context
&[u8]
track_settings
&RecordSubtitleSettings