servo_media_player/metadata.rs
1use std::time;
2
3#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
4pub struct Metadata {
5 pub duration: Option<time::Duration>,
6 pub width: u32,
7 pub height: u32,
8 pub format: String,
9 pub is_seekable: bool,
10 // TODO: Might be nice to move width and height along with each video track.
11 pub video_tracks: Vec<String>,
12 pub audio_tracks: Vec<String>,
13 // Whether the media comes from a live source or not.
14 pub is_live: bool,
15 pub title: Option<String>,
16}