Package com.amazonaws.ivs.broadcast
Class Device.Descriptor
- java.lang.Object
-
- com.amazonaws.ivs.broadcast.Device.Descriptor
-
- Enclosing class:
- Device
public static class Device.Descriptor extends java.lang.ObjectRepresents an input device's description. This can be used to identify the device without opening or attaching it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevice.Descriptor.DeviceTypestatic classDevice.Descriptor.PositionPhysical device positionstatic classDevice.Descriptor.StreamTypeMedia types present in a stream
-
Field Summary
Fields Modifier and Type Field Description AudioDevice.FormataudioFormatMicrophone audio formatandroid.hardware.camera2.CameraCharacteristicscameraCharacteristicsAndroid-specific characteristics for camerasintchannelCountMicrophone channel countstatic java.lang.StringDEFAULT_IDjava.lang.StringdeviceIdSystem deviceId.java.lang.StringfriendlyNameA human-readable namebooleanisDefaultDefault device indicatorintpixelHeightintpixelWidthCamera pixel dimensionsDevice.Descriptor.PositionpositionThe physical location of the device, if it can be determinedfloatrotationCamera rotationintsampleRateMicrophone sample rateDevice.Descriptor.StreamType[]streamsThe types of streams supported by the deviceDevice.Descriptor.DeviceTypetypeThe device type or familyjava.lang.StringurnUnique device locator.
-
Constructor Summary
Constructors Constructor Description Descriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasStream(Device.Descriptor.StreamType wants)booleanisValid()
-
-
-
Field Detail
-
deviceId
public java.lang.String deviceId
System deviceId. These may not be unique as the system may reuse device ids for different types
-
urn
public java.lang.String urn
Unique device locator. this will be unique but it may be generated internally and may not match system addresses.
-
friendlyName
public java.lang.String friendlyName
A human-readable name
-
type
public Device.Descriptor.DeviceType type
The device type or family
-
streams
public Device.Descriptor.StreamType[] streams
The types of streams supported by the device
-
position
public Device.Descriptor.Position position
The physical location of the device, if it can be determined
-
cameraCharacteristics
public android.hardware.camera2.CameraCharacteristics cameraCharacteristics
Android-specific characteristics for cameras
-
pixelWidth
public int pixelWidth
Camera pixel dimensions
-
pixelHeight
public int pixelHeight
-
rotation
public float rotation
Camera rotation
-
sampleRate
public int sampleRate
Microphone sample rate
-
channelCount
public int channelCount
Microphone channel count
-
audioFormat
public AudioDevice.Format audioFormat
Microphone audio format
-
isDefault
public boolean isDefault
Default device indicator
-
DEFAULT_ID
public static final java.lang.String DEFAULT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasStream
public boolean hasStream(Device.Descriptor.StreamType wants)
-
isValid
public boolean isValid()
-
-