pub enum Stream {
None,
}Variants
None
Implementations
sourceimpl Stream
impl Stream
sourcepub fn new(
tex_manager: Arc<RwLock<TextureManager>>,
path: &Path,
config: &Config
) -> Result<Self>
pub fn new(
tex_manager: Arc<RwLock<TextureManager>>,
path: &Path,
config: &Config
) -> Result<Self>
Create a new video object from a given video file.
sourcepub fn start(&mut self) -> Result<()>
pub fn start(&mut self) -> Result<()>
Starts a stream; assumes it is at first frame and unpauses.
sourcepub fn restart(&mut self) -> Result<()>
pub fn restart(&mut self) -> Result<()>
Restarts a stream; seeks to the first frame and unpauses, sets the eos flag to false.
pub fn process_bus(&mut self, looping: bool) -> Result<bool>
pub fn cloned(
&self,
frame: Arc<Mutex<Option<(TextureId, Vec2)>>>,
mode: StreamMode,
volume: f32
) -> Result<Self>
pub fn pull_samples(&self) -> Result<(FrameBuffer, f64)>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more