Skip to main content

PlayStreamInfoExt

Trait PlayStreamInfoExt 

Source
pub trait PlayStreamInfoExt: IsA<PlayStreamInfo> + 'static {
    // Provided methods
    fn caps(&self) -> Option<Caps> { ... }
    fn codec(&self) -> Option<GString> { ... }
    fn index(&self) -> i32 { ... }
    fn stream_id(&self) -> GString { ... }
    fn stream_type(&self) -> GString { ... }
    fn tags(&self) -> Option<TagList> { ... }
}
Expand description

Trait containing all PlayStreamInfo methods.

§Implementors

PlayAudioInfo, PlayStreamInfo, PlaySubtitleInfo, PlayVideoInfo

Provided Methods§

Source

fn caps(&self) -> Option<Caps>

§Returns

the gst::Caps of the stream or None if unknown.

Source

fn codec(&self) -> Option<GString>

A string describing codec used in PlayStreamInfo.

§Returns

codec string or None on unknown.

Source

fn index(&self) -> i32

👎Deprecated:

Since 1.26

Function to get stream index from PlayStreamInfo instance or -1 if unknown.

§Deprecated since 1.26

Use stream_id().

§Returns

the stream index of this stream.

Source

fn stream_id(&self) -> GString

A string stream id identifying this PlayStreamInfo.

§Returns

stream id string.

Source

fn stream_type(&self) -> GString

Function to return human readable name for the stream type of the given self (ex: “audio”, “video”, “subtitle”)

§Returns

a human readable name

Source

fn tags(&self) -> Option<TagList>

§Returns

the tags contained in this stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§