pub struct GStreamerMediaStream {
id: Option<MediaStreamId>,
type_: MediaStreamType,
elements: Vec<Element>,
pipeline: Option<Pipeline>,
}
Fields§
§id: Option<MediaStreamId>
§type_: MediaStreamType
§elements: Vec<Element>
§pipeline: Option<Pipeline>
Implementations§
source§impl GStreamerMediaStream
impl GStreamerMediaStream
pub fn new(type_: MediaStreamType, elements: Vec<Element>) -> Self
pub fn caps(&self) -> &Caps
pub fn caps_with_payload(&self, payload: i32) -> Caps
pub fn src_element(&self) -> Element
pub fn attach_to_pipeline(&mut self, pipeline: &Pipeline)
pub fn pipeline_or_new(&mut self) -> Pipeline
pub fn create_video() -> MediaStreamId
sourcepub fn encoded(&mut self) -> Element
pub fn encoded(&mut self) -> Element
Attaches encoding adapters to the stream, returning the source element
pub fn create_video_from(source: Element) -> MediaStreamId
pub fn create_audio() -> MediaStreamId
pub fn create_audio_from(source: Element) -> MediaStreamId
pub fn create_proxy( ty: MediaStreamType, ) -> (MediaStreamId, GstreamerMediaSocket)
Trait Implementations§
source§impl Drop for GStreamerMediaStream
impl Drop for GStreamerMediaStream
source§impl MediaStream for GStreamerMediaStream
impl MediaStream for GStreamerMediaStream
Auto Trait Implementations§
impl Freeze for GStreamerMediaStream
impl RefUnwindSafe for GStreamerMediaStream
impl Send for GStreamerMediaStream
impl Sync for GStreamerMediaStream
impl Unpin for GStreamerMediaStream
impl UnwindSafe for GStreamerMediaStream
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