gi-gst-1.0.11: GStreamer bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Objects.StreamCollection

Contents

Description

A collection of Stream that are available.

A StreamCollection will be provided by elements that can make those streams available. Applications can use the collection to show the user what streams are available by using gst_stream_collection_get_stream()

Once posted, a StreamCollection is immutable. Updates are made by sending a new StreamCollection message, which may or may not share some of the Stream objects from the collection it replaces. The receiver can check the sender of a stream collection message to know which collection is obsoleted.

Several elements in a pipeline can provide StreamCollection.

Applications can activate streams from a collection by using the GST_EVENT_SELECT_STREAMS event on a pipeline, bin or element.

Synopsis

Exported types

Methods

addStream

streamCollectionAddStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsStreamCollection a, IsStream b) 
=> a

collection: a StreamCollection

-> b

stream: the Stream to add

-> m Bool

Returns: True if the stream was properly added, else False

Add the given stream to the collection.

Since: 1.10

getSize

streamCollectionGetSize Source #

Arguments

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

collection: a StreamCollection

-> m Word32

Returns: The number of streams that collection contains

Get the number of streams this collection contains

Since: 1.10

getStream

streamCollectionGetStream Source #

Arguments

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

collection: a StreamCollection

-> Word32

index: Index of the stream to retrieve

-> m Stream

Returns: A Stream

Retrieve the Stream with index index from the collection.

The caller should not modify the returned Stream

Since: 1.10

getUpstreamId

streamCollectionGetUpstreamId Source #

Arguments

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

collection: a StreamCollection

-> m Text

Returns: The upstream id

Returns the upstream id of the collection.

Since: 1.10

new

streamCollectionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

upstreamId: The stream id of the parent stream

-> m StreamCollection

Returns: The new StreamCollection.

Create a new StreamCollection.

Since: 1.10

Properties

upstreamId

data StreamCollectionUpstreamIdPropertyInfo Source #

Instances

AttrInfo StreamCollectionUpstreamIdPropertyInfo Source # 
type AttrOrigin StreamCollectionUpstreamIdPropertyInfo Source # 
type AttrLabel StreamCollectionUpstreamIdPropertyInfo Source # 
type AttrGetType StreamCollectionUpstreamIdPropertyInfo Source # 
type AttrBaseTypeConstraint StreamCollectionUpstreamIdPropertyInfo Source # 
type AttrSetTypeConstraint StreamCollectionUpstreamIdPropertyInfo Source # 
type AttrAllowedOps StreamCollectionUpstreamIdPropertyInfo Source # 

Signals

streamNotify