pub struct DummyPlayer;
Trait Implementations§
source§impl MediaInstance for DummyPlayer
impl MediaInstance for DummyPlayer
source§impl Player for DummyPlayer
impl Player for DummyPlayer
fn play(&self) -> Result<(), PlayerError>
fn pause(&self) -> Result<(), PlayerError>
fn stop(&self) -> Result<(), PlayerError>
fn seek(&self, _: f64) -> Result<(), PlayerError>
fn set_mute(&self, _: bool) -> Result<(), PlayerError>
fn set_volume(&self, _: f64) -> Result<(), PlayerError>
fn set_input_size(&self, _: u64) -> Result<(), PlayerError>
fn set_rate(&self, _: f64) -> Result<(), PlayerError>
fn push_data(&self, _: Vec<u8>) -> Result<(), PlayerError>
fn end_of_stream(&self) -> Result<(), PlayerError>
source§fn buffered(&self) -> Result<Vec<Range<f64>>, PlayerError>
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>
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
fn render_use_gl(&self) -> bool
If player’s rendering draws using GL textures
fn set_audio_track(&self, _: i32, _: bool) -> Result<(), PlayerError>
fn set_video_track(&self, _: i32, _: bool) -> Result<(), PlayerError>
Auto Trait Implementations§
impl Freeze for DummyPlayer
impl RefUnwindSafe for DummyPlayer
impl Send for DummyPlayer
impl Sync for DummyPlayer
impl Unpin for DummyPlayer
impl UnwindSafe for DummyPlayer
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