Class NdiMediaStreamInfo
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<NdiMediaStreamInfo.Builder,NdiMediaStreamInfo>
Detailed information about a single media stream that is part of an NDIĀ® 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 NdiMediaStreamInfo.Builderbuilder()final Integerchannels()The number of audio channels in the stream.final Stringcodec()The codec used for the media 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 IntegerThe number of audio samples captured per second, measured in kilohertz (kHz).final ScanModescanMode()The method used to display video frames.final StringThe method used to display video frames.static Class<? extends NdiMediaStreamInfo.Builder> final IntegerstreamId()A unique identifier for the media stream.final StringThe type of media 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
-
streamType
The type of media stream (for example,
VideoorAudio).- Returns:
- The type of media stream (for example,
VideoorAudio).
-
codec
The codec used for the media stream. For NDI sources, use
speed-hq.- Returns:
- The codec used for the media stream. For NDI sources, use
speed-hq.
-
streamId
A unique identifier for the media stream.
- Returns:
- A unique identifier for the media stream.
-
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:
-
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.
-
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.
-
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, measured in kilohertz (kHz). Used when the
streamTypeisAudio.- Returns:
- The number of audio samples captured per second, measured in kilohertz (kHz). 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<NdiMediaStreamInfo.Builder,NdiMediaStreamInfo> - 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.
-