servo_media_gstreamer::player

Struct PlayerInner

source
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

source

pub fn set_input_size(&mut self, size: u64) -> Result<(), PlayerError>

source

pub fn set_mute(&mut self, val: bool) -> Result<(), PlayerError>

source

pub fn set_rate(&mut self, rate: f64) -> Result<(), PlayerError>

source

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

source

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

source

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

source

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

source

pub fn seek(&mut self, time: f64) -> Result<(), PlayerError>

source

pub fn set_volume(&mut self, value: f64) -> Result<(), PlayerError>

source

pub fn push_data(&mut self, data: Vec<u8>) -> Result<(), PlayerError>

source

pub fn set_src(&mut self, source: PlayerSource)

source

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

source

fn set_stream( &mut self, stream: &MediaStreamId, only_stream: bool, ) -> Result<(), PlayerError>

source

fn set_audio_track( &mut self, stream_index: i32, enabled: bool, ) -> Result<(), PlayerError>

source

fn set_video_track( &mut self, stream_index: i32, enabled: 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> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
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.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T