pub struct PlayerLayer { /* private fields */ }Expand description
Re-exports the AVPlayer framework surface for this item.
Mirrors the AVPlayer framework counterpart for PlayerLayer.
Implementations§
Source§impl PlayerLayer
impl PlayerLayer
Sourcepub fn new(player: Option<&Player>) -> Result<Self, AVPlayerError>
pub fn new(player: Option<&Player>) -> Result<Self, AVPlayerError>
Calls the AVPlayer framework counterpart for new.
Sourcepub fn has_player(&self) -> Result<bool, AVPlayerError>
pub fn has_player(&self) -> Result<bool, AVPlayerError>
Calls the AVPlayer framework counterpart for has_player.
Sourcepub fn set_player(&self, player: Option<&Player>)
pub fn set_player(&self, player: Option<&Player>)
Calls the AVPlayer framework counterpart for set_player.
Sourcepub fn video_gravity(&self) -> Result<VideoGravity, AVPlayerError>
pub fn video_gravity(&self) -> Result<VideoGravity, AVPlayerError>
Calls the AVPlayer framework counterpart for video_gravity.
Sourcepub fn set_video_gravity(
&self,
video_gravity: VideoGravity,
) -> Result<(), AVPlayerError>
pub fn set_video_gravity( &self, video_gravity: VideoGravity, ) -> Result<(), AVPlayerError>
Calls the AVPlayer framework counterpart for set_video_gravity.
Sourcepub fn is_ready_for_display(&self) -> Result<bool, AVPlayerError>
pub fn is_ready_for_display(&self) -> Result<bool, AVPlayerError>
Calls the AVPlayer framework counterpart for is_ready_for_display.
Sourcepub fn video_rect(&self) -> Result<Rect, AVPlayerError>
pub fn video_rect(&self) -> Result<Rect, AVPlayerError>
Calls the AVPlayer framework counterpart for video_rect.
Sourcepub fn copy_displayed_pixel_buffer(&self) -> Option<CVPixelBuffer>
pub fn copy_displayed_pixel_buffer(&self) -> Option<CVPixelBuffer>
Calls the AVPlayer framework counterpart for copy_displayed_pixel_buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlayerLayer
impl RefUnwindSafe for PlayerLayer
impl !Sync for PlayerLayer
impl Unpin for PlayerLayer
impl UnsafeUnpin for PlayerLayer
impl UnwindSafe for PlayerLayer
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