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 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 TypeMethodDescriptionvoid
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
-
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
-