pub struct TrackInfo { /* private fields */ }Expand description
Represents parsed track info.
Implementations§
Source§impl TrackInfo
impl TrackInfo
Sourcepub fn get(&self, tag: TrackInfoTag) -> Option<&EntryValue>
pub fn get(&self, tag: TrackInfoTag) -> Option<&EntryValue>
Get value for tag. Different variants of TrackInfoTag may have
different value types, please refer to TrackInfoTag.
Sourcepub fn gps_info(&self) -> Option<&GPSInfo>
pub fn gps_info(&self) -> Option<&GPSInfo>
Parsed GPS info, if GpsIso6709 was present in the source. Mirrors
Exif::gps_info.
Sourcepub fn iter(&self) -> impl Iterator<Item = (TrackInfoTag, &EntryValue)>
pub fn iter(&self) -> impl Iterator<Item = (TrackInfoTag, &EntryValue)>
Iterate over (tag, value) pairs. The tag is yielded by value
because TrackInfoTag is Copy. The parsed GPSInfo is not
included here — get it via TrackInfo::gps_info.
Sourcepub fn has_embedded_media(&self) -> bool
pub fn has_embedded_media(&self) -> bool
Whether the source container is known to embed additional media
streams that this parse_track call did not surface (e.g. an
.mka container holding both audio and video, or an .mp4 that also
embeds a still-image track). Symmetric with
Exif::has_embedded_media.
v3.0.0 note: detection on the track side is not yet
implemented; this currently always returns false. The accessor
exists so future versions can flip the flag without a breaking
API change. See spec §8.6 for the design rationale.