Class CameraMediaSourceConfiguration
- java.lang.Object
-
- com.amazonaws.kinesisvideo.client.mediasource.CameraMediaSourceConfiguration
-
- All Implemented Interfaces:
MediaSourceConfiguration
public class CameraMediaSourceConfiguration extends Object implements MediaSourceConfiguration
CameraMediaSourceConfiguration defines common configuration properties for camera media source
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCameraMediaSourceConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringMEDIA_SOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description CameraMediaSourceConfiguration(CameraMediaSourceConfiguration.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CameraMediaSourceConfiguration.Builderbuilder()intgetBitRate()Gets the encoding bitrate.intgetCameraFacing()Gets the camera facing front or back.StringgetCameraId()Returns the ID of the cameraintgetCameraOrientation()Gets the orientation of the camera in degrees.byte[]getCodecPrivateData()Gets the codec private data.StringgetEncoderMimeType()Gets the encoder mime type.intgetFrameRate()Gets the frame rate of the camera.intgetGopDurationMillis()Gets the GOP (group-of-pictures) duration in milliseconds.intgetHorizontalResolution()Gets the horizontal resolution.booleangetIsAbsoluteTimecode()Get if timecode is absolute or notStringgetMediaSourceDescription()StringgetMediaSourceType()StreamInfo.NalAdaptationFlagsgetNalAdaptationFlags()Get the Nal Adaption FlagStringgetOutputFileName()Gets the output file name.intgetRetentionPeriodInHours()Gets the retention period in hourslonggetTimeScale()Gets the timescaleintgetVerticalResolution()Gets the vertical resolution.booleanisEndcoderHardwareAccelerated()Whether the encoder is hardware accelerated.
-
-
-
Field Detail
-
MEDIA_SOURCE_TYPE
public static final String MEDIA_SOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CameraMediaSourceConfiguration
public CameraMediaSourceConfiguration(CameraMediaSourceConfiguration.Builder builder)
-
-
Method Detail
-
getMediaSourceType
public String getMediaSourceType()
- Specified by:
getMediaSourceTypein interfaceMediaSourceConfiguration- Returns:
- type of the media source, e.g. "AndroidCamera"
-
getMediaSourceDescription
public String getMediaSourceDescription()
- Specified by:
getMediaSourceDescriptionin interfaceMediaSourceConfiguration- Returns:
- description of the media source, e.g. "AndroidCamera"
-
builder
public static CameraMediaSourceConfiguration.Builder builder()
-
getCameraId
public String getCameraId()
Returns the ID of the camera- Returns:
- ID of the camera
-
getCameraFacing
public int getCameraFacing()
Gets the camera facing front or back.- Returns:
- camera facing front or back.
-
getCameraOrientation
public int getCameraOrientation()
Gets the orientation of the camera in degrees.- Returns:
- orientation of the camera in degrees.
-
getHorizontalResolution
public int getHorizontalResolution()
Gets the horizontal resolution.- Returns:
- horizontal resolution
-
getVerticalResolution
public int getVerticalResolution()
Gets the vertical resolution.- Returns:
- vertical resolution
-
getOutputFileName
public String getOutputFileName()
Gets the output file name.- Returns:
- Output file name
-
getFrameRate
public int getFrameRate()
Gets the frame rate of the camera.- Returns:
- Frame rate
-
getRetentionPeriodInHours
public int getRetentionPeriodInHours()
Gets the retention period in hours- Returns:
- Retention period in hours
-
getBitRate
public int getBitRate()
Gets the encoding bitrate.- Returns:
- bit rate.
-
getEncoderMimeType
@Nonnull public String getEncoderMimeType()
Gets the encoder mime type.- Returns:
- encoder mime type
-
getGopDurationMillis
public int getGopDurationMillis()
Gets the GOP (group-of-pictures) duration in milliseconds.- Returns:
- GOP duration
-
isEndcoderHardwareAccelerated
public boolean isEndcoderHardwareAccelerated()
Whether the encoder is hardware accelerated.- Returns:
- true if encoder is hardware accelerated. false otherwise
-
getCodecPrivateData
@Nullable public byte[] getCodecPrivateData()
Gets the codec private data.- Returns:
- Codec private data
-
getTimeScale
public long getTimeScale()
Gets the timescale- Returns:
- timescale
-
getNalAdaptationFlags
public StreamInfo.NalAdaptationFlags getNalAdaptationFlags()
Get the Nal Adaption Flag- Returns:
- NAL Adaption flag
-
getIsAbsoluteTimecode
public boolean getIsAbsoluteTimecode()
Get if timecode is absolute or not- Returns:
- true if absolute. false otherwise.
-
-