Package com.amazonaws.ivs.broadcast
Class MixedImageDevice
java.lang.Object
com.amazonaws.ivs.broadcast.Device
com.amazonaws.ivs.broadcast.ImageDevice
com.amazonaws.ivs.broadcast.SurfaceSource
com.amazonaws.ivs.broadcast.CustomImageSource
com.amazonaws.ivs.broadcast.MixedImageDevice
- All Implemented Interfaces:
MixedDevice<MixedImageDeviceSource>
,Releasable
public class MixedImageDevice
extends CustomImageSource
implements MixedDevice<MixedImageDeviceSource>
A mixed image device that can accept multiple image sources to be mixed together to produce a final output.
A mixed image device with no input sources will still produce output, but the output will be a black image.
Note: Previews for this device will be delayed slightly from the input sources due to the time it takes to composite and render the various sources into a single output stream.
This can be created through DeviceDiscovery
.
-
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
addSource
(MixedImageDeviceSource source) Adds a source to this mixed device.void
removeSource
(MixedImageDeviceSource source) Removes a source from the mixed device.Methods inherited from class com.amazonaws.ivs.broadcast.CustomImageSource
finalize, release
Methods inherited from class com.amazonaws.ivs.broadcast.SurfaceSource
getDescriptor, getHandle, getInputSurface, getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getTag, isValid, postToMediaHandler, rotateOnConfigurationChanges, setInputSurface, setOnFrameCallback, setRotation, setSize, willRotateOnConfigurationChanges
Methods inherited from class com.amazonaws.ivs.broadcast.ImageDevice
getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getPreviewView, getPreviewView, setRotation
-
Method Details
-
addSource
Adds a source to this mixed device. If this source has already been added, this will be a no-op.- Specified by:
addSource
in interfaceMixedDevice<MixedImageDeviceSource>
- Parameters:
source
- The source to add.
-
removeSource
Removes a source from the mixed device. If this source isn't currently attached, this will be a no-op.- Specified by:
removeSource
in interfaceMixedDevice<MixedImageDeviceSource>
- Parameters:
source
- The source to remove.
-
getSources
- Specified by:
getSources
in interfaceMixedDevice<MixedImageDeviceSource>
- Returns:
- A list of the sources attached to this mixed device.
-