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 _getGType() static nothrow
GType _gType() @property nothrow
Stream self() nothrowReturns `this`, for use in `with` statements.
StreamGidBuilder builder() static nothrowGet builder for [gst.stream.Stream] Returns: New builder object
gst.caps.Caps caps() @property nothrowGet `caps` property. Returns: The #GstCaps of the #GstStream.
void caps(gst.caps.Caps propval) @property nothrowSet `caps` property. Params: propval = The #GstCaps of the #GstStream.
void streamFlags(gst.types.StreamFlags propval) @property nothrow
string streamId() @property nothrowGet `streamId` property. Returns: The unique identifier of the #GstStream. Can only be set at construction time.
gst.types.StreamType streamType() @property nothrowGet `streamType` property. Returns: The #GstStreamType of the #GstStream. Can only be set at construction time.
void streamType(gst.types.StreamType propval) @property nothrowSet `streamType` property. Params: propval = The #GstStreamType of the #GstStream. Can only be set at construction time.
gst.tag_list.TagList tags() @property nothrowGet `tags` property. Returns: The #GstTagList of the #GstStream.
void tags(gst.tag_list.TagList propval) @property nothrowSet `tags` property. Params: propval = The #GstTagList of the #GstStream.
gst.caps.Caps getCaps() nothrowRetrieve the caps for stream, if any Returns: The #GstCaps for stream
gst.types.StreamFlags getStreamFlags() nothrowRetrieve the current stream flags for stream Returns: The #GstStreamFlags for stream
string getStreamId() nothrowReturns the stream ID of stream. Returns: the stream ID of stream. Only valid during the lifetime of stream.
gst.types.StreamType getStreamType() nothrowRetrieve the stream type for stream Returns: The #GstStreamType for stream
gst.tag_list.TagList getTags() nothrowRetrieve the tags for stream, if any Returns: The #GstTagList for stream
void setCaps(gst.caps.Caps caps = null) nothrowSet the caps for the #GstStream
void setStreamFlags(gst.types.StreamFlags flags) nothrowSet the flags for the stream.
void setStreamType(gst.types.StreamType streamType) nothrowSet the stream type of stream
void setTags(gst.tag_list.TagList tags = null) nothrowSet 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

Fluent builder implementation template for gst.stream.Stream

Methods
T caps(gst.caps.Caps propval) nothrowSet `caps` property. Params: propval = The #GstCaps of the #GstStream. Returns: Builder instance for fluent chaining
T streamId(string propval) nothrowSet `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) nothrowSet `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) nothrowSet `tags` property. Params: propval = The #GstTagList of the #GstStream. Returns: Builder instance for fluent chaining

Fluent builder for gst.stream.Stream

Methods
Stream build() nothrowCreate object from builder. Returns: New object