servo_media_dummy

Struct DummyPlayer

source
pub struct DummyPlayer;

Trait Implementations§

source§

impl MediaInstance for DummyPlayer

source§

fn get_id(&self) -> usize

source§

fn mute(&self, _val: bool) -> Result<(), ()>

source§

fn suspend(&self) -> Result<(), ()>

source§

fn resume(&self) -> Result<(), ()>

source§

impl Player for DummyPlayer

source§

fn play(&self) -> Result<(), PlayerError>

source§

fn pause(&self) -> Result<(), PlayerError>

source§

fn stop(&self) -> Result<(), PlayerError>

source§

fn seek(&self, _: f64) -> Result<(), PlayerError>

source§

fn set_mute(&self, _: bool) -> Result<(), PlayerError>

source§

fn set_volume(&self, _: f64) -> Result<(), PlayerError>

source§

fn set_input_size(&self, _: u64) -> Result<(), PlayerError>

source§

fn set_rate(&self, _: f64) -> Result<(), PlayerError>

source§

fn push_data(&self, _: Vec<u8>) -> Result<(), PlayerError>

source§

fn end_of_stream(&self) -> Result<(), PlayerError>

source§

fn buffered(&self) -> Result<Vec<Range<f64>>, PlayerError>

Get the list of time ranges in seconds that have been buffered.
source§

fn set_stream(&self, _: &MediaStreamId, _: bool) -> Result<(), PlayerError>

Set the stream to be played by the player. Only a single stream of the same type (audio or video) can be set. Subsequent calls with a stream of the same type will override the previously set stream. This method requires the player to be constructed with StreamType::Stream. It is important to give the correct value of only_stream indicating that the audio or video stream being set is the only one expected. Subsequent calls to set_stream after the only_stream flag has been set to true will fail.
source§

fn render_use_gl(&self) -> bool

If player’s rendering draws using GL textures
source§

fn set_audio_track(&self, _: i32, _: bool) -> Result<(), PlayerError>

source§

fn set_video_track(&self, _: i32, _: bool) -> Result<(), PlayerError>

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.