Trait gstreamer::prelude::URIHandlerExt

source ·
pub trait URIHandlerExt:
    IsA<URIHandler>
    + Sealed
    + 'static {
    // Provided methods
    fn protocols(&self) -> Vec<GString> { ... }
    fn uri(&self) -> Option<GString> { ... }
    fn uri_type(&self) -> URIType { ... }
    fn set_uri(&self, uri: &str) -> Result<(), Error> { ... }
}
Expand description

Trait containing all URIHandler methods.

§Implementors

URIHandler

Provided Methods§

source

fn protocols(&self) -> Vec<GString>

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.

source

fn uri(&self) -> Option<GString>

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.

source

fn uri_type(&self) -> URIType

Gets the type of the given URI handler

§Returns

the URIType of the URI handler. Returns URIType::Unknown if the self isn’t implemented correctly.

source

fn set_uri(&self, uri: &str) -> Result<(), Error>

Tries to set the URI of the given handler.

§uri

URI to set

§Returns

true if the URI was set successfully, else false.

Object Safety§

This trait is not object safe.

Implementors§