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 classRepresents camera capture capabilities such as zoom supportstatic final classSet options for capturing camera input such as the zoom factorNested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.ImageDevice
ImageDevice.FrameCallback, ImageDevice.RotationNested 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 capabilitiesvoidsetOptions(CameraSource.Options options) Sets capture options for this camera.voidsetRotation(float rotation) Sets the rotation of the ImageDevice.Methods inherited from class com.amazonaws.ivs.broadcast.SurfaceSource
getHandle, getInputSurface, getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getTag, isValid, postToMediaHandler, rotateOnConfigurationChanges, setInputSurface, setOnFrameCallback, setSize, willRotateOnConfigurationChangesMethods inherited from class com.amazonaws.ivs.broadcast.ImageDevice
getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getPreviewView, getPreviewView, setRotation
-
Method Details
-
getDescriptor
- Overrides:
getDescriptorin 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:ImageDeviceSets the rotation of the ImageDevice.- Overrides:
setRotationin classSurfaceSource- Parameters:
rotation- Rotation in radians
-