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
impl<T> Container<T> for Twhere
T: Clone,
impl<T> Container<T> for Twhere
T: Clone,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.