gst.stream

Module for [Stream] class

Types 3

classStream : gst.object.ObjectWrap

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

A #GstStream 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 #GstStream contains all the information pertinent to a stream, such as stream-id, tags, caps, type, ...

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

Methods
GType _gType() @property
Stream self()Returns `this`, for use in `with` statements.
StreamGidBuilder builder()Get builder for [gst.stream.Stream] Returns: New builder object
gst.caps.Caps caps() @propertyGet `caps` property. Returns: The #GstCaps of the #GstStream.
void caps(gst.caps.Caps propval) @propertySet `caps` property. Params: propval = The #GstCaps of the #GstStream.
void streamFlags(gst.types.StreamFlags propval) @property
string streamId() @propertyGet `streamId` property. Returns: The unique identifier of the #GstStream. Can only be set at construction time.
gst.types.StreamType streamType() @propertyGet `streamType` property. Returns: The #GstStreamType of the #GstStream. Can only be set at construction time.
void streamType(gst.types.StreamType propval) @propertySet `streamType` property. Params: propval = The #GstStreamType of the #GstStream. Can only be set at construction time.
gst.tag_list.TagList tags() @propertyGet `tags` property. Returns: The #GstTagList of the #GstStream.
void tags(gst.tag_list.TagList propval) @propertySet `tags` property. Params: propval = The #GstTagList of the #GstStream.
gst.caps.Caps getCaps()Retrieve the caps for stream, if any Returns: The #GstCaps for stream
gst.types.StreamFlags getStreamFlags()Retrieve the current stream flags for stream Returns: The #GstStreamFlags for stream
string getStreamId()Returns the stream ID of stream. Returns: the stream ID of stream. Only valid during the lifetime of stream.
gst.types.StreamType getStreamType()Retrieve the stream type for stream Returns: The #GstStreamType for stream
gst.tag_list.TagList getTags()Retrieve the tags for stream, if any Returns: The #GstTagList for stream
void setCaps(gst.caps.Caps caps = null)Set the caps for the #GstStream
void setStreamFlags(gst.types.StreamFlags flags)Set the flags for the stream.
void setStreamType(gst.types.StreamType streamType)Set the stream type of stream
void setTags(gst.tag_list.TagList tags = null)Set the tags for the #GstStream
Constructors
this(void * ptr, Flag!"Take" take)
this(string streamId, gst.caps.Caps caps, gst.types.StreamType type, gst.types.StreamFlags flags)Create a new #GstStream for the given stream_id, caps, type and flags
Methods
T caps(gst.caps.Caps propval)Set `caps` property. Params: propval = The #GstCaps of the #GstStream. Returns: Builder instance for fluent chaining
T streamId(string propval)Set `streamId` property. Params: propval = The unique identifier of the #GstStream. Can only be set at construction time. Returns: Builder instance for fluent chaining
T streamType(gst.types.StreamType propval)Set `streamType` property. Params: propval = The #GstStreamType of the #GstStream. Can only be set at construction time. Returns: Builder instance for fluent chaining
T tags(gst.tag_list.TagList propval)Set `tags` property. Params: propval = The #GstTagList of the #GstStream. Returns: Builder instance for fluent chaining

Fluent builder for [gst.stream.Stream]

Methods
Stream build()