Package com.amazonaws.ivs.broadcast
Class CameraSource
java.lang.Object
com.amazonaws.ivs.broadcast.Device
com.amazonaws.ivs.broadcast.ImageDevice
com.amazonaws.ivs.broadcast.SurfaceSource
com.amazonaws.ivs.broadcast.CameraSource
CameraSource represents a camera input device
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Represents camera capture capabilities such as zoom supportstatic final class
Set options for capturing camera input such as the zoom factorNested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.ImageDevice
ImageDevice.FrameCallback, ImageDevice.Rotation
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.Device
Device.Descriptor
-
Field Summary
Fields inherited from class com.amazonaws.ivs.broadcast.SurfaceSource
context, handle, shouldRotateOnConfigurationChanges
-
Method Summary
Modifier and TypeMethodDescriptionReturns this camera's capabilitiesvoid
setOptions
(CameraSource.Options options) Sets capture options for this camera.void
setRotation
(float rotation) Sets the rotation of the ImageDevice.Methods inherited from class com.amazonaws.ivs.broadcast.SurfaceSource
getHandle, getInputSurface, getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getTag, isValid, rotateOnConfigurationChanges, setInputSurface, setOnFrameCallback, setSize, willRotateOnConfigurationChanges
Methods inherited from class com.amazonaws.ivs.broadcast.ImageDevice
getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getPreviewView, getPreviewView, setRotation
-
Method Details
-
getDescriptor
- Overrides:
getDescriptor
in classSurfaceSource
- Returns:
- the Device.Descriptor that represents this camera
-
getCapabilities
Returns this camera's capabilities- Returns:
- The camera's capabilities
-
setOptions
Sets capture options for this camera. If the camera is already open and capturing video input, it will remain open and the video capture will adjust right away based on the new options.- Parameters:
options
- Options to apply- Throws:
IllegalArgumentException
- If options are not valid
-
setRotation
public void setRotation(float rotation) Description copied from class:ImageDevice
Sets the rotation of the ImageDevice.- Overrides:
setRotation
in classSurfaceSource
- Parameters:
rotation
- Rotation in radians
-