Package com.amazonaws.ivs.broadcast
Class CustomImageSource
java.lang.Object
com.amazonaws.ivs.broadcast.Device
com.amazonaws.ivs.broadcast.ImageDevice
com.amazonaws.ivs.broadcast.SurfaceSource
com.amazonaws.ivs.broadcast.CustomImageSource
- All Implemented Interfaces:
Releasable
An extension of
SurfaceSource
to send app-generated video to the SDK.
See also DeviceDiscovery.createImageInputSource(BroadcastConfiguration.Vec2)
-
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
-
Constructor Summary
ModifierConstructorDescriptionprotected
CustomImageSource
(android.content.Context context, android.view.Surface inputSurface, android.graphics.SurfaceTexture inputSurfaceTexture, android.os.Handler handler, String tag, long handle) -
Method Summary
Methods inherited from class com.amazonaws.ivs.broadcast.SurfaceSource
getDescriptor, getHandle, getInputSurface, getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getTag, isValid, rotateOnConfigurationChanges, setInputSurface, setOnFrameCallback, setRotation, setSize, willRotateOnConfigurationChanges
Methods inherited from class com.amazonaws.ivs.broadcast.ImageDevice
getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getPreviewView, getPreviewView, setRotation
-
Constructor Details
-
CustomImageSource
protected CustomImageSource(android.content.Context context, android.view.Surface inputSurface, android.graphics.SurfaceTexture inputSurfaceTexture, android.os.Handler handler, String tag, long handle)
-
-
Method Details
-
finalize
-
release
public void release()Releases the custom image source instance. This method must be called when theCustomImageSource
is no longer being used. The custom image source cannot be used after this method is called.- Specified by:
release
in interfaceReleasable
-