/// Get the currently configured extra codec data
Get the currently configured extra codec data
Get the currently configured extra codec data
fn configuration(&self) -> Result<MediaCodecConfig, avdtp::Error> {
        self.endpoint
            .get_configuration()?
            .iter()
            .find_map(|cap| MediaCodecConfig::try_from(cap).ok())
            .ok_or(avdtp::Error::InvalidState)
    }
fn configuration ( & self ) -> Result < MediaCodecConfig , avdtp :: Error > { self . endpoint . get_configuration ( ) ? . iter ( ) . find_map ( | cap | MediaCodecConfig :: try_from ( cap ) . ok ( ) ) . ok_or ( avdtp :: Error :: InvalidState ) }
Get the currently configured extra codec data
Get the currently configured extra codec data
&self