struct PlayerInner {
player: Player,
source: Option<PlayerSource>,
video_sink: AppSink,
input_size: u64,
rate: f64,
stream_type: StreamType,
last_metadata: Option<Metadata>,
cat: DebugCategory,
enough_data: Arc<AtomicBool>,
}
Fields§
§player: Player
§source: Option<PlayerSource>
§video_sink: AppSink
§input_size: u64
§rate: f64
§stream_type: StreamType
§last_metadata: Option<Metadata>
§cat: DebugCategory
§enough_data: Arc<AtomicBool>
Implementations§
source§impl PlayerInner
impl PlayerInner
pub fn set_input_size(&mut self, size: u64) -> Result<(), PlayerError>
pub fn set_mute(&mut self, val: bool) -> Result<(), PlayerError>
pub fn set_rate(&mut self, rate: f64) -> Result<(), PlayerError>
pub fn play(&mut self) -> Result<(), PlayerError>
pub fn stop(&mut self) -> Result<(), PlayerError>
pub fn pause(&mut self) -> Result<(), PlayerError>
pub fn end_of_stream(&mut self) -> Result<(), PlayerError>
pub fn seek(&mut self, time: f64) -> Result<(), PlayerError>
pub fn set_volume(&mut self, value: f64) -> Result<(), PlayerError>
pub fn push_data(&mut self, data: Vec<u8>) -> Result<(), PlayerError>
pub fn set_src(&mut self, source: PlayerSource)
pub fn buffered(&mut self) -> Result<Vec<Range<f64>>, PlayerError>
fn set_stream( &mut self, stream: &MediaStreamId, only_stream: bool, ) -> Result<(), PlayerError>
fn set_audio_track( &mut self, stream_index: i32, enabled: bool, ) -> Result<(), PlayerError>
fn set_video_track( &mut self, stream_index: i32, enabled: bool, ) -> Result<(), PlayerError>
Auto Trait Implementations§
impl Freeze for PlayerInner
impl RefUnwindSafe for PlayerInner
impl Send for PlayerInner
impl Sync for PlayerInner
impl Unpin for PlayerInner
impl UnwindSafe for PlayerInner
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more