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

Provided Methods§

source

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

§Returns

the gst::Caps of the stream.

source

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

A string describing codec used in PlayerStreamInfo.

§Returns

codec string or None on unknown.

source

fn index(&self) -> i32

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

§Returns

the stream index of this stream.

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.

Object Safety§

This trait is not object safe.

Implementors§