servo-media-player 0.1.0

A component of the servo web-engine.
Documentation
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

use std::time;

#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
pub struct Metadata {
    pub duration: Option<time::Duration>,
    pub width: u32,
    pub height: u32,
    pub format: String,
    pub is_seekable: bool,
    // TODO: Might be nice to move width and height along with each video track.
    pub video_tracks: Vec<String>,
    pub audio_tracks: Vec<String>,
    // Whether the media comes from a live source or not.
    pub is_live: bool,
    pub title: Option<String>,
}