Trait gstreamer::prelude::URIHandlerExt [−][src]
pub trait URIHandlerExt: 'static { fn protocols(&self) -> Vec<GString>; fn uri(&self) -> Option<GString>; fn uri_type(&self) -> URIType; fn set_uri(&self, uri: &str) -> Result<(), Error>; }
Required methods
fn protocols(&self) -> Vec<GString>
[src]
Gets the list of protocols supported by self
. This list may not be
modified.
Returns
the
supported protocols. Returns None
if the self
isn’t
implemented properly, or the self
doesn’t support any
protocols.
fn uri(&self) -> Option<GString>
[src]
Gets the currently handled URI.
Returns
the URI currently handled by
the self
. Returns None
if there are no URI currently
handled. The returned string must be freed with g_free()
when no
longer needed.
fn uri_type(&self) -> URIType
[src]
Gets the type of the given URI handler
Returns
the crate::URIType
of the URI handler.
Returns crate::URIType::Unknown
if the self
isn’t implemented correctly.
fn set_uri(&self, uri: &str) -> Result<(), Error>
[src]
Implementors
Loading content...