gi-gst-1.0.22: GStreamer bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Interfaces.URIHandler

Description

The URIHandler is an interface that is implemented by Source and Sink 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 (elementMakeFromUri).

Source and Sink plugins should implement this interface when possible.

Synopsis

Exported types

newtype URIHandler Source #

Memory-managed wrapper type.

class (ManagedPtrNewtype o, IsDescendantOf URIHandler o) => IsURIHandler o Source #

Type class for types which implement URIHandler.

Instances

Instances details
(ManagedPtrNewtype o, IsDescendantOf URIHandler o) => IsURIHandler o Source # 
Instance details

Defined in GI.Gst.Interfaces.URIHandler

Methods

Overloaded methods

getProtocols

uRIHandlerGetProtocols Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIHandler a) 
=> a

handler: A URIHandler.

-> m (Maybe [Text])

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

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

getUri

uRIHandlerGetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIHandler a) 
=> a

handler: A URIHandler

-> m (Maybe Text)

Returns: the URI currently handled by the handler. Returns Nothing if there are no URI currently handled. The returned string must be freed with free when no longer needed.

Gets the currently handled URI.

getUriType

uRIHandlerGetUriType Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIHandler a) 
=> a

handler: A URIHandler.

-> m URIType

Returns: the URIType of the URI handler. Returns GST_URI_UNKNOWN if the handler isn't implemented correctly.

Gets the type of the given URI handler

setUri

uRIHandlerSetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsURIHandler a) 
=> a

handler: A URIHandler

-> Text

uri: URI to set

-> m ()

(Can throw GError)

Tries to set the URI of the given handler.