#[macro_use]
extern crate lazy_static;
pub mod capture;
pub mod device_monitor;
pub mod registry;
use std::any::Any;
pub use registry::*;
pub trait MediaStream: Any + Send {
fn as_any(&self) -> &dyn Any;
fn as_mut_any(&mut self) -> &mut dyn Any;
fn set_id(&mut self, id: registry::MediaStreamId);
fn ty(&self) -> MediaStreamType;
}
pub trait MediaSocket: Any + Send {
fn as_any(&self) -> &dyn Any;
}
pub trait MediaOutput: Send {
fn add_stream(&mut self, stream: ®istry::MediaStreamId);
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MediaStreamType {
Video,
Audio,
}