mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix metadata update
This commit is contained in:
parent
f65c400828
commit
35c4c35416
5 changed files with 62 additions and 29 deletions
|
@ -213,9 +213,19 @@ pub struct MediaMetadata {
|
|||
/// Title
|
||||
pub title: String,
|
||||
/// Artist
|
||||
pub artist: Option<String>,
|
||||
pub artist: String,
|
||||
/// Album
|
||||
pub album: Option<String>,
|
||||
pub album: String,
|
||||
}
|
||||
|
||||
impl MediaMetadata {
|
||||
pub fn new(title: String) -> Self {
|
||||
Self {
|
||||
title,
|
||||
artist: "".to_owned(),
|
||||
album: "".to_owned(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// https://w3c.github.io/mediasession/#enumdef-mediasessionplaybackstate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue