pub enum Stream {
None,
}Variants§
None
Implementations§
Source§impl 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 Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more