Struct vlc::Instance
[−]
[src]
pub struct Instance { pub ptr: *mut libvlc_instance_t, }
Fields
ptr: *mut libvlc_instance_t
Methods
impl Instance
[src]
fn new() -> Option<Instance>
Create and initialize a libvlc instance.
fn add_intf(&self, name: &str) -> Result<(), ()>
Try to start a user interface for the libvlc instance.
fn set_user_agent(&self, name: &str, http: &str)
Sets the application name. LibVLC passes this as the user agent string when a protocol requires it.
fn wait(&self)
Waits until an interface causes the instance to exit.
fn set_app_id(&self, id: &str, version: &str, icon: &str)
Sets some meta-information about the application.
fn audio_filter_list_get(&self) -> Option<ModuleDescriptionList>
Returns a list of audio filters that are available.
fn video_filter_list_get(&self) -> Option<ModuleDescriptionList>
Returns a list of video filters that are available.
fn set_log<F: Fn(LogLevel, Log, Cow<str>) + Send + 'static>(&self, f: F)
Set logging callback