pub struct MediaSupport {
pub contract_versions: RangeInclusive<u32>,
pub backend: &'static str,
pub backend_version: &'static str,
pub presenter: &'static str,
pub presenter_version: &'static str,
pub background_playback: bool,
pub multi_view: bool,
}Expand description
The media backend and video presenter a target assembles for Video.
The two are versioned separately from the target and from each other.
Fields§
§contract_versions: RangeInclusive<u32>Versions of the media contract both parts implement.
backend: &'static strMedia backend that loads and plays, for example avfoundation.
backend_version: &'static str§presenter: &'static strPresenter that attaches players to views, for example avplayerview.
presenter_version: &'static str§background_playback: boolPlayers keep playing while no view is attached.
multi_view: boolSeveral views may show one player at the same time.
Trait Implementations§
Source§impl Clone for MediaSupport
impl Clone for MediaSupport
Auto Trait Implementations§
impl Freeze for MediaSupport
impl RefUnwindSafe for MediaSupport
impl Send for MediaSupport
impl Sync for MediaSupport
impl Unpin for MediaSupport
impl UnsafeUnpin for MediaSupport
impl UnwindSafe for MediaSupport
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