servo_media_dummy

Struct DummyBackend

source
pub struct DummyBackend;

Trait Implementations§

source§

impl AudioBackend for DummyBackend

source§

impl Backend for DummyBackend

source§

fn create_audiostream(&self) -> MediaStreamId

source§

fn create_videostream(&self) -> MediaStreamId

source§

fn create_stream_output(&self) -> Box<dyn MediaOutput>

source§

fn create_audioinput_stream( &self, _: MediaTrackConstraintSet, ) -> Option<MediaStreamId>

source§

fn create_stream_and_socket( &self, _: MediaStreamType, ) -> (Box<dyn MediaSocket>, MediaStreamId)

source§

fn create_videoinput_stream( &self, _: MediaTrackConstraintSet, ) -> Option<MediaStreamId>

source§

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>>

source§

fn create_audio_context( &self, _id: &ClientContextId, options: AudioContextOptions, ) -> Result<Arc<Mutex<AudioContext>>, AudioSinkError>

source§

fn create_webrtc(&self, signaller: Box<dyn WebRtcSignaller>) -> WebRtcController

source§

fn can_play_type(&self, _media_type: &str) -> SupportsMediaType

source§

fn get_device_monitor(&self) -> Box<dyn MediaDeviceMonitor>

source§

fn set_capture_mocking(&self, _mock: bool)

source§

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)

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)

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

source§

fn init() -> Box<dyn Backend>

source§

impl WebRtcBackend for DummyBackend

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.