Struct rinvideo::Player[][src]

pub struct Player { /* fields omitted */ }

Video player, allows to play a video file using several models like calling update or polling the frames port for available frames both in blocking and non-blocking modes

Methods

impl Player
[src]

Reference to the internal VideoAppSink

Mutable reference to the internal VideoAppSink

Sets the player in play state

Total frames of the video

Frames per second of the video

Duration of the video in nanoseconds

Duration of the video in seconds

Current position in the video in 0..1

Current position in the video in nanoseconds

Current position in the video in seconds

Current playback speed of the video in 0..1

Sets current position in the video in nanoseconds

Sets current position in the video in seconds

Sets current position in the video in 0..1

Sets current playback speed of the video in 0..1

Sets the player in paused state

Sets the player in stopped state

Returns true if the player is in paused state

Returns true if the player is in stopped state

Trait Implementations

impl Video for Player
[src]

Blocks till a new frame is availble can return None if the output format is not supported Read more

Tries to receive a new frame and returns immediately if there's none available. It also returns Empty if the output format is not supported Read more

Blocks till a new frame is available, if there's more than one frame it discards them till the last one Read more

Tries to receive a new frame and returns immediately if there's none available. It also returns Empty if the output format is not supported. If there's more than one frame it discards them till the last one Read more

Tries to receive the last frame and stores it internally, it can be recovered using last_frame Read more

Returns a reference to the last frame if there's one available

Width of the video

Height of the video

fps of the video, this should be the reported framerate by the underlying backend not the real fps Read more

fps of the video, this should be the real fps calculated when calling any of the functions to return a new frame or update Read more

Size (width x height) of the video

impl<'a> Render2d for &'a Player
[src]

Auto Trait Implementations

impl !Send for Player

impl !Sync for Player