Trait gstreamer_player::PlayerStreamInfoExt [−][src]
pub trait PlayerStreamInfoExt {
fn get_caps(&self) -> Option<Caps>;
fn get_codec(&self) -> Option<String>;
fn get_index(&self) -> i32;
fn get_stream_type(&self) -> String;
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<String>
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) -> String
Function to return human readable name for the stream type
of the given self (ex: "audio", "video", "subtitle")
Returns
a human readable name
Returns
the tags contained in this stream.
Implementors
impl<O: IsA<PlayerStreamInfo>> PlayerStreamInfoExt for O