pub trait VideoBackend: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn open(
&self,
request: &VideoRequest,
) -> Result<Box<dyn VideoPlayer>, String>;
}Expand description
What opens videos (Video::backend, and the viewer’s).
Required Methods§
Sourcefn open(&self, request: &VideoRequest) -> Result<Box<dyn VideoPlayer>, String>
fn open(&self, request: &VideoRequest) -> Result<Box<dyn VideoPlayer>, String>
A player, paused at the start of the file, or why not. It stops when dropped, without making the interface’s thread wait.