gstreamer-0.11.0: Binding to the GStreamer open source multimedia framework.Source codeContentsIndex
Media.Streaming.GStreamer.Core.ElementFactory
Portabilityportable (depends on GHC)
Stabilityalpha
Maintainergtk2hs-devel@lists.sourceforge.net
Contents
Detail
Types
ElementFactory Operations
Description
A factory for creating Elements.
Synopsis
data ElementFactory
class PluginFeatureClass o => ElementFactoryClass o
castToElementFactory :: GObjectClass obj => obj -> ElementFactory
gTypeElementFactory :: GType
elementFactoryFind :: String -> IO (Maybe ElementFactory)
elementFactoryGetElementType :: ElementFactoryClass elementFactory => elementFactory -> IO (Maybe GType)
elementFactoryGetLongname :: ElementFactoryClass elementFactory => elementFactory -> IO String
elementFactoryGetKlass :: ElementFactoryClass elementFactory => elementFactory -> IO String
elementFactoryGetDescription :: ElementFactoryClass elementFactory => elementFactory -> IO String
elementFactoryGetAuthor :: ElementFactoryClass elementFactory => elementFactory -> IO String
elementFactoryGetNumPadTemplates :: ElementFactoryClass elementFactory => elementFactory -> IO Word
elementFactoryGetURIType :: ElementFactoryClass elementFactory => elementFactory -> IO Int
elementFactoryGetURIProtocols :: ElementFactoryClass elementFactory => elementFactory -> IO [String]
elementFactoryHasInterface :: ElementFactoryClass elementFactory => elementFactory -> String -> IO Bool
elementFactoryCreate :: ElementFactoryClass elementFactory => elementFactory -> String -> IO (Maybe Element)
elementFactoryMake :: String -> Maybe String -> IO (Maybe Element)
elementFactoryCanSinkCaps :: ElementFactoryClass elementFactory => elementFactory -> Caps -> IO Bool
elementFactoryCanSrcCaps :: ElementFactoryClass elementFactory => elementFactory -> Caps -> IO Bool
elementFactoryGetPadTemplates :: ElementFactoryClass elementFactory => elementFactory -> IO [PadTemplate]
Detail

ElementFactory is used to create instances of Elements.

Use elementFactoryFind and elementFactoryCreate to create element instances, or use elementFactoryMake as a convenient shortcut.

Types
data ElementFactory Source
class PluginFeatureClass o => ElementFactoryClass o Source
castToElementFactory :: GObjectClass obj => obj -> ElementFactorySource
gTypeElementFactory :: GTypeSource
ElementFactory Operations
elementFactoryFindSource
:: Stringname - the name of the desired factory
-> IO (Maybe ElementFactory)the factory if found, otherwise Nothing
Search for an element factory with the given name.
elementFactoryGetElementTypeSource
:: ElementFactoryClass elementFactory
=> elementFactorythe type of elements managed by the factory, or Nothing if the factory is not loaded
-> IO (Maybe GType)
Get the GType for elements managed by the given factory. The type can only be retrieved if the element factory is loaded, which can be assured with Media.Streaming.GStreamer.Core.PluginFeature.pluginFeatureLoad.
elementFactoryGetLongnameSource
:: ElementFactoryClass elementFactory
=> elementFactorythe factory's long name
-> IO String
Get the long name for the given factory.
elementFactoryGetKlassSource
:: ElementFactoryClass elementFactory
=> elementFactorythe factory's class
-> IO String
Get the class for the given factory.
elementFactoryGetDescriptionSource
:: ElementFactoryClass elementFactory
=> elementFactorythe factory's description
-> IO String
Get the description for the given factory.
elementFactoryGetAuthorSource
:: ElementFactoryClass elementFactory
=> elementFactorythe factory's author
-> IO String
Get the author of the given factory.
elementFactoryGetNumPadTemplatesSource
:: ElementFactoryClass elementFactory
=> elementFactorythe number of PadTemplates
-> IO Word
Get the number of PadTemplates provided by the given factory.
elementFactoryGetURITypeSource
:: ElementFactoryClass elementFactory
=> elementFactorythe type of URIs supported by the factory
-> IO Int
Get the type of URIs supported by the given factory.
elementFactoryGetURIProtocolsSource
:: ElementFactoryClass elementFactory
=> elementFactorythe supported protocols
-> IO [String]
Get the list of protocols supported by the given factory.
elementFactoryHasInterfaceSource
:: ElementFactoryClass elementFactory
=> elementFactoryname - the interface name
-> Stringtrue if the interface is implemented
-> IO Bool

Check if the given factory implements the interface with the given name.

Since 0.10.14.

elementFactoryCreateSource
:: ElementFactoryClass elementFactory
=> elementFactoryname - the new element's name
-> Stringthe new element if it could be created, otherwise Nothing
-> IO (Maybe Element)
Create a new element of the type supplied by the given factory. It will be given the name supplied.
elementFactoryMakeSource
:: StringfactoryName - the name of an element factory
-> Maybe Stringname - the new element's name, or Nothing generate a unique name
-> IO (Maybe Element)the new element if it could be created, otherwise Nothing
Create a new element of the type supplied by the named factory.
elementFactoryCanSinkCapsSource
:: ElementFactoryClass elementFactory
=> elementFactorycaps - the capabilities to check for
-> CapsTrue if factory can sink the given capabilities
-> IO Bool
Check if the given factory can sink the given capabilities.
elementFactoryCanSrcCapsSource
:: ElementFactoryClass elementFactory
=> elementFactorycaps - the capabilities to check for
-> CapsTrue if factory can source the given capabilities
-> IO Bool
Check if the given factory can source the given capabilities.
elementFactoryGetPadTemplatesSource
:: ElementFactoryClass elementFactory
=> elementFactorythe provided pad templates
-> IO [PadTemplate]
Get the pad templates provided by the given factory.
Produced by Haddock version 2.6.0