pub trait PlayerStreamInfoExt: IsA<PlayerStreamInfo> + '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
Trait containing all PlayerStreamInfo
methods.
§Implementors
PlayerAudioInfo
, PlayerStreamInfo
, PlayerSubtitleInfo
, PlayerVideoInfo
Provided Methods§
Sourcefn index(&self) -> i32
fn index(&self) -> i32
Function to get stream index from PlayerStreamInfo
instance or -1 if
unknown.
§Returns
the stream index of this stream.
Sourcefn stream_type(&self) -> GString
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
§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", so this trait is not object safe.