pub struct MediaItem {
pub container: String,
pub url: Option<String>,
pub content: Option<String>,
pub time: Option<f64>,
pub volume: Option<f64>,
pub speed: Option<f64>,
pub cache: Option<bool>,
pub show_duration: Option<f64>,
pub headers: Option<HashMap<String, String>>,
pub metadata: Option<MetadataObject>,
}Fields§
§container: StringThe MIME type (video/mp4)
url: Option<String>The URL to load (optional)
content: Option<String>The content to load (i.e. a DASH manifest, json content, optional)
time: Option<f64>The time to start playing in seconds
volume: Option<f64>The desired volume (0-1)
speed: Option<f64>The factor to multiply playback speed by (defaults to 1.0)
cache: Option<bool>Indicates if the receiver should preload the media item
show_duration: Option<f64>Indicates how long the item content is presented on screen in seconds
headers: Option<HashMap<String, String>>HTTP request headers to add to the play request Map<string, string>
metadata: Option<MetadataObject>Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaItem
impl<'de> Deserialize<'de> for MediaItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MediaItem
Auto Trait Implementations§
impl Freeze for MediaItem
impl RefUnwindSafe for MediaItem
impl Send for MediaItem
impl Sync for MediaItem
impl Unpin for MediaItem
impl UnwindSafe for MediaItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more