Struct sciter::video::video_destination
[−]
[src]
#[repr(C)]pub struct video_destination { /* fields omitted */ }
Video destination interface, represents video rendering site.
Methods
impl video_destination
[src]
pub fn is_alive(&mut self) -> bool
[src]
Whether this instance of video_renderer
is attached to a DOM element and is capable of playing.
pub fn start_streaming(
&mut self,
frame_size: (i32, i32),
color_space: COLOR_SPACE,
src: Option<&video_source>
) -> Result<()>
[src]
&mut self,
frame_size: (i32, i32),
color_space: COLOR_SPACE,
src: Option<&video_source>
) -> Result<()>
Start streaming/rendering.
pub fn stop_streaming(&mut self) -> Result<()>
[src]
Stop streaming.
pub fn render_frame(&mut self, data: &[u8]) -> Result<()>
[src]
Render the next frame.