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