pub fn duration(&self) -> Option<i64> {
        let time = unsafe{
            sys::libvlc_media_get_duration(self.ptr)
        };
        if time != -1 { Some(time) }else{ None }
    }
/// Get duration (in ms) of media descriptor object item.
Get duration (in ms) of media descriptor object item.
Get duration ( in ms ) of media descriptor object item .
pub fn duration(&self) -> Option<i64> {
        let time = unsafe{
            sys::libvlc_media_get_duration(self.ptr)
        };
        if time != -1 { Some(time) }else{ None }
    }
pub fn duration ( & self ) -> Option < i64 > { let time = unsafe { sys :: libvlc_media_get_duration ( self . ptr ) } ; if time != - 1 { Some ( time ) } else { None } }
Get duration (in ms) of media descriptor object item.
Get duration ( in ms ) of media descriptor object item .
&self
&self