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

pub trait PlayerStreamInfoExt: 'static {
    fn get_caps(&self) -> Option<Caps>;
fn get_codec(&self) -> Option<GString>;
fn get_index(&self) -> i32;
fn get_stream_type(&self) -> GString;
fn get_tags(&self) -> Option<TagList>; }

Trait containing all PlayerStreamInfo methods.

Implementors

PlayerAudioInfo, PlayerStreamInfo, PlayerSubtitleInfo, PlayerVideoInfo

Required methods

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

Returns

the gst::Caps of the stream.

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

A string describing codec used in PlayerStreamInfo.

Returns

codec string or NULL on unknown.

fn get_index(&self) -> i32

Function to get stream index from PlayerStreamInfo instance.

Returns

the stream index of this stream.

fn get_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

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

Returns

the tags contained in this stream.

Loading content...

Implementors

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

Loading content...