Struct aws_sdk_mediaconnect::types::MediaStream
source · #[non_exhaustive]pub struct MediaStream {
pub attributes: Option<MediaStreamAttributes>,
pub clock_rate: Option<i32>,
pub description: Option<String>,
pub fmt: Option<i32>,
pub media_stream_id: Option<i32>,
pub media_stream_name: Option<String>,
pub media_stream_type: Option<MediaStreamType>,
pub video_format: Option<String>,
}
Expand description
A single track or stream of media that contains video, audio, or ancillary data. After you add a media stream to a flow, you can associate it with sources and outputs on that flow, as long as they use the CDI protocol or the ST 2110 JPEG XS protocol. Each source or output can consist of one or many media streams.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: Option<MediaStreamAttributes>
Attributes that are related to the media stream.
clock_rate: Option<i32>
The sample rate for the stream. This value is measured in Hz.
description: Option<String>
A description that can help you quickly identify what your media stream is used for.
fmt: Option<i32>
The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.
media_stream_id: Option<i32>
A unique identifier for the media stream.
media_stream_name: Option<String>
A name that helps you distinguish one media stream from another.
media_stream_type: Option<MediaStreamType>
The type of media stream.
video_format: Option<String>
The resolution of the video.
Implementations§
source§impl MediaStream
impl MediaStream
sourcepub fn attributes(&self) -> Option<&MediaStreamAttributes>
pub fn attributes(&self) -> Option<&MediaStreamAttributes>
Attributes that are related to the media stream.
sourcepub fn clock_rate(&self) -> Option<i32>
pub fn clock_rate(&self) -> Option<i32>
The sample rate for the stream. This value is measured in Hz.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description that can help you quickly identify what your media stream is used for.
sourcepub fn fmt(&self) -> Option<i32>
pub fn fmt(&self) -> Option<i32>
The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.
sourcepub fn media_stream_id(&self) -> Option<i32>
pub fn media_stream_id(&self) -> Option<i32>
A unique identifier for the media stream.
sourcepub fn media_stream_name(&self) -> Option<&str>
pub fn media_stream_name(&self) -> Option<&str>
A name that helps you distinguish one media stream from another.
sourcepub fn media_stream_type(&self) -> Option<&MediaStreamType>
pub fn media_stream_type(&self) -> Option<&MediaStreamType>
The type of media stream.
sourcepub fn video_format(&self) -> Option<&str>
pub fn video_format(&self) -> Option<&str>
The resolution of the video.
source§impl MediaStream
impl MediaStream
sourcepub fn builder() -> MediaStreamBuilder
pub fn builder() -> MediaStreamBuilder
Creates a new builder-style object to manufacture MediaStream
.
Trait Implementations§
source§impl Clone for MediaStream
impl Clone for MediaStream
source§fn clone(&self) -> MediaStream
fn clone(&self) -> MediaStream
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaStream
impl Debug for MediaStream
source§impl PartialEq for MediaStream
impl PartialEq for MediaStream
source§fn eq(&self, other: &MediaStream) -> bool
fn eq(&self, other: &MediaStream) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MediaStream
Auto Trait Implementations§
impl Freeze for MediaStream
impl RefUnwindSafe for MediaStream
impl Send for MediaStream
impl Sync for MediaStream
impl Unpin for MediaStream
impl UnwindSafe for MediaStream
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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