Struct sciter::video::video_destination
source · [−]#[repr(C)]pub struct video_destination { /* private fields */ }
Expand description
Video destination interface, represents video rendering site.
Implementations
sourceimpl video_destination
impl video_destination
sourcepub fn is_alive(&self) -> bool
pub fn is_alive(&self) -> bool
Whether this instance of video_renderer
is attached to a DOM element and is capable of playing.
sourcepub fn start_streaming(
&mut self,
frame_size: (i32, i32),
color_space: COLOR_SPACE,
src: Option<&video_source>
) -> Result<()>
pub fn start_streaming(
&mut self,
frame_size: (i32, i32),
color_space: COLOR_SPACE,
src: Option<&video_source>
) -> Result<()>
Start streaming/rendering.
frame_size
- the width and the height of the video frame.color_space
- the color space format of the video frame.src
- an optional customvideo_source
interface implementation, provided by the application.
sourcepub fn stop_streaming(&mut self) -> Result<()>
pub fn stop_streaming(&mut self) -> Result<()>
Stop streaming.
Auto Trait Implementations
impl RefUnwindSafe for video_destination
impl !Send for video_destination
impl !Sync for video_destination
impl Unpin for video_destination
impl UnwindSafe for video_destination
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more