pub fn new_location(instance: &Instance, mrl: &str) -> Option<Media> {
        let cstr = to_cstr(mrl);

        unsafe{
            let p = sys::libvlc_media_new_location(instance.ptr, cstr.as_ptr());
            if p.is_null() {
                return None;
            }

            Some(Media{ptr: p})
        }
    }
/// Create a media with a certain given media resource location, for instance a valid URL.
Create a media with a certain given media resource location, for instance a valid URL.
Create a media with a certain given media resource location for instance a valid URL .
pub fn new_location(instance: &Instance, mrl: &str) -> Option<Media> {
        let cstr = to_cstr(mrl);
        unsafe{
            let p = sys::libvlc_media_new_location(instance.ptr, cstr.as_ptr());
            if p.is_null() {
                return None;
            }
            Some(Media{ptr: p})
        }
    }
pub fn new_location ( instance : & Instance , mrl : & str ) -> Option < Media > { let cstr = to_cstr ( mrl ) ; unsafe { let p = sys :: libvlc_media_new_location ( instance . ptr , cstr . as_ptr ( ) ) ; if p . is_null ( ) { return None ; } Some ( Media { ptr : p } ) } }
Create a media with a certain given media resource location, for instance a valid URL.
Create a media with a certain given media resource location for instance a valid URL .
instance
&Instance
mrl
&str
instance
&Instance
mrl
&str