pub struct DummyBackend;
Trait Implementations§
source§impl AudioBackend for DummyBackend
impl AudioBackend for DummyBackend
type Sink = DummyAudioSink
fn make_decoder() -> Box<dyn AudioDecoder>
fn make_sink() -> Result<Self::Sink, AudioSinkError>
fn make_streamreader( _id: MediaStreamId, _sample_rate: f32, ) -> Box<dyn AudioStreamReader + Send>
source§impl Backend for DummyBackend
impl Backend for DummyBackend
fn create_audiostream(&self) -> MediaStreamId
fn create_videostream(&self) -> MediaStreamId
fn create_stream_output(&self) -> Box<dyn MediaOutput>
fn create_audioinput_stream( &self, _: MediaTrackConstraintSet, ) -> Option<MediaStreamId>
fn create_stream_and_socket( &self, _: MediaStreamType, ) -> (Box<dyn MediaSocket>, MediaStreamId)
fn create_videoinput_stream( &self, _: MediaTrackConstraintSet, ) -> Option<MediaStreamId>
fn create_player( &self, _id: &ClientContextId, _: StreamType, _: IpcSender<PlayerEvent>, _: Option<Arc<Mutex<dyn VideoFrameRenderer>>>, _: Option<Arc<Mutex<dyn AudioRenderer>>>, _: Box<dyn PlayerGLContext>, ) -> Arc<Mutex<dyn Player>>
fn create_audio_context( &self, _id: &ClientContextId, options: AudioContextOptions, ) -> Result<Arc<Mutex<AudioContext>>, AudioSinkError>
fn create_webrtc(&self, signaller: Box<dyn WebRtcSignaller>) -> WebRtcController
fn can_play_type(&self, _media_type: &str) -> SupportsMediaType
fn get_device_monitor(&self) -> Box<dyn MediaDeviceMonitor>
fn set_capture_mocking(&self, _mock: bool)
source§fn mute(&self, _id: &ClientContextId, _val: bool)
fn mute(&self, _id: &ClientContextId, _val: bool)
Allow muting/unmuting the media instances associated with the given client context identifier.
Backend implementations are responsible for keeping a match between client contexts
and the media instances created for these contexts.
The client context identifier is currently an abstraction of Servo’s PipelineId.
source§fn suspend(&self, _id: &ClientContextId)
fn suspend(&self, _id: &ClientContextId)
Allow suspending the activity of all media instances associated with the given client
context identifier.
Note that suspending does not involve releasing any resources, so media playback can
be restarted.
Backend implementations are responsible for keeping a match between client contexts
and the media instances created for these contexts.
The client context identifier is currently an abstraction of Servo’s PipelineId.
source§fn resume(&self, _id: &ClientContextId)
fn resume(&self, _id: &ClientContextId)
Allow resuming the activity of all the media instances associated with the given client
context identifier.
Backend implementations are responsible for keeping a match between client contexts
and the media instances created for these contexts.
The client context identifier is currently an abstraction of Servo’s PipelineId.
source§impl BackendInit for DummyBackend
impl BackendInit for DummyBackend
source§impl WebRtcBackend for DummyBackend
impl WebRtcBackend for DummyBackend
type Controller = DummyWebRtcController
fn construct_webrtc_controller( _: Box<dyn WebRtcSignaller>, _: WebRtcController, ) -> Self::Controller
Auto Trait Implementations§
impl Freeze for DummyBackend
impl RefUnwindSafe for DummyBackend
impl Send for DummyBackend
impl Sync for DummyBackend
impl Unpin for DummyBackend
impl UnwindSafe for DummyBackend
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more