Module: Gst::URIHandler

Defined in:
(unknown)

Overview

The Gst::URIHandler is an interface that is implemented by Source and Sink Gst::Element to unify handling of URI.

An application can use the following functions to quickly get an element that handles the given URI for reading or writing (gst_element_make_from_uri()).

Source and Sink plugins should implement this interface when possible.

Instance Method Summary collapse

Instance Method Details

#protocolsArray<String>

Gets the list of protocols supported by handler. This list may not be modified.

Returns:

  • (Array<String>)

    the supported protocols. Returns nil if the handler isn't implemented properly, or the handler doesn't support any protocols.

#uriString

Gets the currently handled URI.

Returns:

  • (String)

    the URI currently handled by the handler. Returns nil if there are no URI currently handled. The returned string must be freed with g_free() when no longer needed.

#uri=(uri) ⇒ Boolean

Tries to set the URI of the given handler.

Parameters:

  • uri (String)

    URI to set

Returns:

  • (Boolean)

    true if the URI was set successfully, else false.

#uri_typeGst::URIType

Gets the type of the given URI handler Returns #GST_URI_UNKNOWN if the handler isn't implemented correctly.

Returns: