Struct gstreamer::StreamCollection[]

pub struct StreamCollection(_, _);

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 StreamCollection::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 EventType::SelectStreams event on a pipeline, bin or element.

Feature: v1_10

Implements

GstObjectExt, glib::object::ObjectExt

Methods

impl StreamCollection
[src]

Add the given stream to the self.

Feature: v1_10

stream

the Stream to add

Returns

true if the stream was properly added, else false

Get the number of streams this collection contains

Feature: v1_10

Returns

The number of streams that self contains

Retrieve the Stream with index index from the collection.

The caller should not modify the returned Stream

Feature: v1_10

index

Index of the stream to retrieve

Returns

A Stream

Returns the upstream id of the self.

Feature: v1_10

Returns

The upstream id

impl StreamCollection
[src]

Create a new StreamCollection.

Feature: v1_10

upstream_id

The stream id of the parent stream

Returns

The new StreamCollection.

Important traits for Iter<'a>

Trait Implementations

impl Clone for StreamCollection

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for StreamCollection

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for StreamCollection

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl StaticType for StreamCollection

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for StreamCollection

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for StreamCollection

impl<T: IsA<Object>> PartialOrd<T> for StreamCollection

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for StreamCollection

Formats the value using the given formatter. Read more

impl IsA<Object> for StreamCollection

impl IsA<Object> for StreamCollection

impl Send for StreamCollection
[src]

impl Sync for StreamCollection
[src]