pub struct OnMetaData<'a> {Show 18 fields
pub audiocodecid: Option<OnMetaDataAudioCodecId>,
pub audiodatarate: Option<f64>,
pub audiodelay: Option<f64>,
pub audiosamplerate: Option<f64>,
pub audiosamplesize: Option<f64>,
pub can_seek_to_end: Option<bool>,
pub creationdate: Option<String>,
pub duration: Option<f64>,
pub filesize: Option<f64>,
pub framerate: Option<f64>,
pub height: Option<f64>,
pub stereo: Option<bool>,
pub videocodecid: Option<OnMetaDataVideoCodecId>,
pub videodatarate: Option<f64>,
pub width: Option<f64>,
pub audio_track_id_info_map: Option<Amf0Object<'a>>,
pub video_track_id_info_map: Option<Amf0Object<'a>>,
pub other: Amf0Object<'a>,
}
Expand description
FLV onMetaData
script data
Defined by:
- Legacy FLV spec, Annex E.5
- Enhanced RTMP spec, page 13-16, Enhancing onMetaData
Fields§
§audiocodecid: Option<OnMetaDataAudioCodecId>
Audio codec ID used in the file.
audiodatarate: Option<f64>
Audio bitrate, in kilobits per second.
audiodelay: Option<f64>
Delay introduced by the audio codec, in seconds.
audiosamplerate: Option<f64>
Frequency at which the audio stream is replayed.
audiosamplesize: Option<f64>
Resolution of a single audio sample.
can_seek_to_end: Option<bool>
Indicating the last video frame is a key frame.
creationdate: Option<String>
Creation date and time.
duration: Option<f64>
Total duration of the file, in seconds.
filesize: Option<f64>
Total size of the file, in bytes.
framerate: Option<f64>
Number of frames per second.
height: Option<f64>
Height of the video, in pixels.
stereo: Option<bool>
Indicates stereo audio.
videocodecid: Option<OnMetaDataVideoCodecId>
Video codec ID used in the file.
videodatarate: Option<f64>
Video bitrate, in kilobits per second.
width: Option<f64>
Width of the video, in pixels.
audio_track_id_info_map: Option<Amf0Object<'a>>
The audioTrackIdInfoMap and videoTrackIdInfoMap objects are designed to store metadata for audio and video tracks respectively. Each object uses a TrackId as a key to map to properties that detail the unique characteristics of each individual track, diverging from the default configurations.
Key-Value Structure:
- Keys: Each TrackId acts as a unique identifier for a specific audio or video track.
- Values: Track Objects containing metadata that specify characteristics which deviate from the default track settings.
Properties of Each Track Object:
- These properties detail non-standard configurations needed for custom handling of the track, facilitating specific adjustments to enhance track performance and quality for varied conditions.
- For videoTrackIdInfoMap:
- Properties such as width, height, videodatarate, etc. specify video characteristics that differ from standard settings.
- For audioTrackIdInfoMap:
- Properties such as audiodatarate, channels, etc., define audio characteristics that differ from standard configurations.
Purpose:
- The purpose of these maps is to specify unique properties for each track, ensuring tailored configurations that optimize performance and quality for specific media content and delivery scenarios.
This structure provides a framework for detailed customization and control over the media tracks, ensuring optimal management and delivery across various types of content and platforms.
video_track_id_info_map: Option<Amf0Object<'a>>
§other: Amf0Object<'a>
Any other metadata contained in the script data.
Trait Implementations§
Source§impl<'a> Clone for OnMetaData<'a>
impl<'a> Clone for OnMetaData<'a>
Source§fn clone(&self) -> OnMetaData<'a>
fn clone(&self) -> OnMetaData<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more