gi-gst-1.0.14: 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.Stream

Contents

Description

A high-level object representing a single stream. It might be backed, or not, by an actual flow of data in a pipeline (Pad).

A Stream does not care about data changes (such as decoding, encoding, parsing,...) as long as the underlying data flow corresponds to the same high-level flow (ex: a certain audio track).

A Stream contains all the information pertinent to a stream, such as stream-id, tags, caps, type, ...

Elements can subclass a Stream for internal usage (to contain information pertinent to streams of data).

Synopsis

Exported types

toStream :: (MonadIO m, IsStream o) => o -> m Stream Source #

Methods

getCaps

streamGetCaps Source #

Arguments

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

stream: a Stream

-> m (Maybe Caps)

Returns: The Caps for stream

Retrieve the caps for stream, if any

Since: 1.10

getStreamFlags

streamGetStreamFlags Source #

Arguments

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

stream: a Stream

-> m [StreamFlags]

Returns: The StreamFlags for stream

Retrieve the current stream flags for stream

Since: 1.10

getStreamId

streamGetStreamId Source #

Arguments

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

stream: a Stream

-> m (Maybe Text)

Returns: the stream ID of stream. Only valid during the lifetime of stream.

Returns the stream ID of stream.

Since: 1.10

getStreamType

streamGetStreamType Source #

Arguments

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

stream: a Stream

-> m [StreamType]

Returns: The StreamType for stream

Retrieve the stream type for stream

Since: 1.10

getTags

streamGetTags Source #

Arguments

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

stream: a Stream

-> m (Maybe TagList)

Returns: The TagList for stream

Retrieve the tags for stream, if any

Since: 1.10

new

streamNew Source #

Arguments

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

streamId: the id for the new stream. If Nothing, a new one will be automatically generated

-> Maybe Caps

caps: the Caps of the stream

-> [StreamType]

type: the StreamType of the stream

-> [StreamFlags]

flags: the StreamFlags of the stream

-> m Stream

Returns: The new Stream

Create a new Stream for the given streamId, caps, type and flags

Since: 1.10

setCaps

streamSetCaps Source #

Arguments

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

stream: a Stream

-> Maybe Caps

caps: a Caps

-> m () 

Set the caps for the Stream

Since: 1.10

setStreamFlags

streamSetStreamFlags Source #

Arguments

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

stream: a Stream

-> [StreamFlags]

flags: the flags to set on stream

-> m () 

Set the flags for the stream.

Since: 1.10

setStreamType

streamSetStreamType Source #

Arguments

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

stream: a Stream

-> [StreamType]

streamType: the type to set on stream

-> m () 

Set the stream type of stream

Since: 1.10

setTags

streamSetTags Source #

Arguments

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

stream: a Stream

-> Maybe TagList

tags: a TagList

-> m () 

Set the tags for the Stream

Since: 1.10

Properties

caps

clearStreamCaps :: (MonadIO m, IsStream o) => o -> m () Source #

setStreamCaps :: (MonadIO m, IsStream o) => o -> Caps -> m () Source #

streamFlags

streamId

streamType

tags

clearStreamTags :: (MonadIO m, IsStream o) => o -> m () Source #

setStreamTags :: (MonadIO m, IsStream o) => o -> TagList -> m () Source #