pub struct PlayerConfig {
pub source: String,
pub width: u32,
pub height: u32,
pub volume: f32,
pub looping: bool,
pub hw_accel: bool,
}Expand description
Playback configuration for a media session.
Fields§
§source: StringSource URL or local file path
width: u32Target width (default: 1920)
height: u32Target height (default: 1080)
volume: f32Volume 0.0–1.0 (default: 1.0)
looping: boolLoop playback
hw_accel: boolHardware acceleration enabled
Trait Implementations§
Source§impl Clone for PlayerConfig
impl Clone for PlayerConfig
Source§fn clone(&self) -> PlayerConfig
fn clone(&self) -> PlayerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerConfig
impl Debug for PlayerConfig
Source§impl Default for PlayerConfig
impl Default for PlayerConfig
Source§impl<'de> Deserialize<'de> for PlayerConfig
impl<'de> Deserialize<'de> for PlayerConfig
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
Auto Trait Implementations§
impl Freeze for PlayerConfig
impl RefUnwindSafe for PlayerConfig
impl Send for PlayerConfig
impl Sync for PlayerConfig
impl Unpin for PlayerConfig
impl UnsafeUnpin for PlayerConfig
impl UnwindSafe for PlayerConfig
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