pub struct LockscreenMetadata {
pub title: String,
pub artist: String,
pub album: Option<String>,
pub duration_ms: i64,
pub position_ms: i64,
pub is_playing: bool,
}Expand description
Metadata for the lockscreen / media notification.
Used to drive the Android MediaSession from Rust in remote (cast) mode, where the local ExoPlayer is idle and so can’t supply now-playing info. The session poller fills this in from the remote Jellyfin session and pushes it to the notification so the lockscreen stays in sync while casting.
TRACES: UR-006 | IR-006
Fields§
§title: String§artist: String§album: Option<String>§duration_ms: i64Track duration in milliseconds.
position_ms: i64Current playback position in milliseconds.
is_playing: boolTrait Implementations§
Source§impl Clone for LockscreenMetadata
impl Clone for LockscreenMetadata
Source§fn clone(&self) -> LockscreenMetadata
fn clone(&self) -> LockscreenMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LockscreenMetadata
impl RefUnwindSafe for LockscreenMetadata
impl Send for LockscreenMetadata
impl Sync for LockscreenMetadata
impl Unpin for LockscreenMetadata
impl UnsafeUnpin for LockscreenMetadata
impl UnwindSafe for LockscreenMetadata
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