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.Object
Represents 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 class
Device.Descriptor.DeviceType
static class
Device.Descriptor.Position
Physical device positionstatic class
Device.Descriptor.StreamType
Media types present in a stream
-
Field Summary
Fields Modifier and Type Field Description AudioDevice.Format
audioFormat
Microphone audio formatandroid.hardware.camera2.CameraCharacteristics
cameraCharacteristics
Android-specific characteristics for camerasint
channelCount
Microphone channel countstatic java.lang.String
DEFAULT_ID
java.lang.String
deviceId
System deviceId.java.lang.String
friendlyName
A human-readable nameboolean
isDefault
Default device indicatorint
pixelHeight
int
pixelWidth
Camera pixel dimensionsDevice.Descriptor.Position
position
The physical location of the device, if it can be determinedfloat
rotation
Camera rotationint
sampleRate
Microphone sample rateDevice.Descriptor.StreamType[]
streams
The types of streams supported by the deviceDevice.Descriptor.DeviceType
type
The device type or familyjava.lang.String
urn
Unique device locator.
-
Constructor Summary
Constructors Constructor Description Descriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasStream(Device.Descriptor.StreamType wants)
boolean
isValid()
-
-
-
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()
-
-