Class RtmpMediaStreamInfo
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RtmpMediaStreamInfo.Builder,RtmpMediaStreamInfo>
Information about a single audio or video stream that is part of an RTMP source. This includes details about the stream type, codec, resolution, frame rate, audio channels, and sample rate.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RtmpMediaStreamInfo.Builderbuilder()final Integerchannels()The number of audio channels in the stream.final Stringcodec()The codec used for the stream.final ColorInformationcolor()The color signaling of the video stream.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe number of video frames displayed per second.final FrameResolutionThe width and height dimensions of the video frame in pixels.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringlanguage()The language of the audio stream.final IntegerThe number of audio samples captured per second.final IntegerThe sample bit size used by the audio stream.final ScanModescanMode()The method used to display video frames.final StringThe method used to display video frames.static Class<? extends RtmpMediaStreamInfo.Builder> final IntegerstreamId()A unique identifier for the stream.final SourceMediaStreamTypeThe type of stream (for example,VIDEOorAUDIO).final StringThe type of stream (for example,VIDEOorAUDIO).Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
streamId
A unique identifier for the stream.
- Returns:
- A unique identifier for the stream.
-
streamType
The type of stream (for example,
VIDEOorAUDIO).If the service returns an enum value that is not available in the current SDK version,
streamTypewill returnSourceMediaStreamType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstreamTypeAsString().- Returns:
- The type of stream (for example,
VIDEOorAUDIO). - See Also:
-
streamTypeAsString
The type of stream (for example,
VIDEOorAUDIO).If the service returns an enum value that is not available in the current SDK version,
streamTypewill returnSourceMediaStreamType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstreamTypeAsString().- Returns:
- The type of stream (for example,
VIDEOorAUDIO). - See Also:
-
codec
-
frameRate
The number of video frames displayed per second. Used when the
streamTypeisVIDEO.- Returns:
- The number of video frames displayed per second. Used when the
streamTypeisVIDEO.
-
frameResolution
The width and height dimensions of the video frame in pixels. Used when the
streamTypeisVIDEO.- Returns:
- The width and height dimensions of the video frame in pixels. Used when the
streamTypeisVIDEO.
-
scanMode
The method used to display video frames. Used when the
streamTypeisVIDEO.If the service returns an enum value that is not available in the current SDK version,
scanModewill returnScanMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanModeAsString().- Returns:
- The method used to display video frames. Used when the
streamTypeisVIDEO. - See Also:
-
scanModeAsString
The method used to display video frames. Used when the
streamTypeisVIDEO.If the service returns an enum value that is not available in the current SDK version,
scanModewill returnScanMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscanModeAsString().- Returns:
- The method used to display video frames. Used when the
streamTypeisVIDEO. - See Also:
-
color
The color signaling of the video stream. Used when the
streamTypeisVIDEO.- Returns:
- The color signaling of the video stream. Used when the
streamTypeisVIDEO.
-
channels
The number of audio channels in the stream. Used when the
streamTypeisAUDIO.- Returns:
- The number of audio channels in the stream. Used when the
streamTypeisAUDIO.
-
sampleRate
The number of audio samples captured per second. Used when the
streamTypeisAUDIO.- Returns:
- The number of audio samples captured per second. Used when the
streamTypeisAUDIO.
-
sampleSize
The sample bit size used by the audio stream. Used when the
streamTypeisAUDIO.- Returns:
- The sample bit size used by the audio stream. Used when the
streamTypeisAUDIO.
-
language
The language of the audio stream. Used when the
streamTypeisAUDIO.- Returns:
- The language of the audio stream. Used when the
streamTypeisAUDIO.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RtmpMediaStreamInfo.Builder,RtmpMediaStreamInfo> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-