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
public class CustomImageSource extends SurfaceSource implements Releasable
An extension ofSurfaceSource
to send app-generated video to the SDK. See alsoDeviceDiscovery.createImageInputSource(BroadcastConfiguration.Vec2)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.ImageDevice
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
Constructors Modifier Constructor Description protected
CustomImageSource(android.content.Context context, android.view.Surface inputSurface, android.graphics.SurfaceTexture inputSurfaceTexture, android.os.Handler handler, java.lang.String tag, long handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
void
release()
Releases the custom image source instance.-
Methods inherited from class com.amazonaws.ivs.broadcast.SurfaceSource
getDescriptor, getHandle, getInputSurface, getPreviewView, getPreviewView, getTag, isValid, rotateOnConfigurationChanges, setRotation, setSize, willRotateOnConfigurationChanges
-
Methods inherited from class com.amazonaws.ivs.broadcast.ImageDevice
setRotation
-
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
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
-
-