Trait VideoStreamDecoderHandle
Source pub trait VideoStreamDecoderHandle: Send + Sync {
// Required methods
fn configure_video(
&self,
config: VideoStreamConfig,
) -> Result<(), PlatformError>;
fn configure_audio(
&self,
config: AudioStreamConfig,
) -> Result<(), PlatformError>;
fn push_video(&self, frame: VideoFrame) -> Result<(), PlatformError>;
fn push_audio(&self, frame: AudioFrame) -> Result<(), PlatformError>;
fn stop(&self) -> Result<(), PlatformError>;
// Provided methods
fn supports_soft_reset(&self) -> bool { ... }
fn supports_in_place_hard_reset(&self) -> bool { ... }
fn reset_stream(&self, _hard: bool) -> Result<(), PlatformError> { ... }
fn flush(&self) -> Result<(), PlatformError> { ... }
}