Trait gstreamer_player::prelude::PlayerStreamInfoExt[][src]

pub trait PlayerStreamInfoExt: 'static {
    fn caps(&self) -> Option<Caps>;
fn codec(&self) -> Option<GString>;
fn index(&self) -> i32;
fn stream_type(&self) -> GString;
fn tags(&self) -> Option<TagList>; }

Trait containing all PlayerStreamInfo methods.

Implementors

crate::PlayerAudioInfo, crate::PlayerStreamInfo, crate::PlayerSubtitleInfo, crate::PlayerVideoInfo

Required methods

fn caps(&self) -> Option<Caps>[src]

Returns

the crate::gst::Caps of the stream.

fn codec(&self) -> Option<GString>[src]

A string describing codec used in crate::PlayerStreamInfo.

Returns

codec string or NULL on unknown.

fn index(&self) -> i32[src]

Function to get stream index from crate::PlayerStreamInfo instance.

Returns

the stream index of this stream.

fn stream_type(&self) -> GString[src]

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

Returns

a human readable name

fn tags(&self) -> Option<TagList>[src]

Returns

the tags contained in this stream.

Loading content...

Implementors

impl<O: IsA<PlayerStreamInfo>> PlayerStreamInfoExt for O[src]

fn caps(&self) -> Option<Caps>[src]

fn codec(&self) -> Option<GString>[src]

fn index(&self) -> i32[src]

fn stream_type(&self) -> GString[src]

fn tags(&self) -> Option<TagList>[src]

Loading content...