pub fn track_idx_by_handler(&self, handler: FourCC) -> Option<usize> {
        self.tracks().iter().enumerate().find_map(|(idx, t)| {
            if t.media().handler().handler_type == handler {
                Some(idx)
            } else {
                None
            }
        })
    }
/// Get the index of the first track with this handler.
Get the index of the first track with this handler.
Get the index of the first track with this handler .
pub fn track_idx_by_handler(&self, handler: FourCC) -> Option<usize> {
        self.tracks().iter().enumerate().find_map(|(idx, t)| {
            if t.media().handler().handler_type == handler {
                Some(idx)
            } else {
                None
            }
        })
    }
pub fn track_idx_by_handler ( & self , handler : FourCC ) -> Option < usize > { self . tracks ( ) . iter ( ) . enumerate ( ) . find_map ( | ( idx , t ) | { if t . media ( ) . handler ( ) . handler_type == handler { Some ( idx ) } else { None } } ) }
Get the index of the first track with this handler.
Get the index of the first track with this handler .
&self
handler
FourCC
&self
handler
FourCC