pub trait VideoSource: Send {
// Required methods
fn info(&self) -> &VideoInfo;
fn frame(&mut self, index: usize) -> VideoResult<Frame>;
}Expand description
A video’s frames, by index. Decoding is blocking: views call it off the UI thread.
Required Methods§
fn info(&self) -> &VideoInfo
Sourcefn frame(&mut self, index: usize) -> VideoResult<Frame>
fn frame(&mut self, index: usize) -> VideoResult<Frame>
Frame index, decoded.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".