public class AndroidCameraMediaSource
extends java.lang.Object
implements com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
Modifier and Type | Class and Description |
---|---|
static interface |
AndroidCameraMediaSource.CaptureCallback |
static interface |
AndroidCameraMediaSource.OpenCameraCallback |
Constructor and Description |
---|
AndroidCameraMediaSource(java.lang.String streamName,
android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration configuration)
Configures the media source
|
void |
free()
Releases resources
|
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration |
getConfiguration()
Returns the
MediaSourceConfiguration used to create this media source |
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceSink |
getMediaSourceSink()
Returns the
MediaSourceSink object |
MediaSourceState |
getMediaSourceState()
Returns the
MediaSourceState |
StreamCallbacks |
getStreamCallbacks()
Returns a stream-specific
StreamCallbacks implementation if any. |
StreamInfo |
getStreamInfo()
Returns the
StreamInfo describing the stream this media source produces |
void |
initialize(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceSink mediaSourceSink)
Initializes the media source with a
MediaSourceSink object |
boolean |
isStopped()
Returns true if media source is now stopped
|
void |
setPreviewSurfaces(android.view.Surface... surfaces) |
void |
start()
Starts the media source
|
void |
stop()
Stops the media source
|
public AndroidCameraMediaSource(java.lang.String streamName, android.content.Context context)
public void setPreviewSurfaces(android.view.Surface... surfaces)
public MediaSourceState getMediaSourceState()
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
MediaSourceState
getMediaSourceState
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
public com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration getConfiguration()
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
MediaSourceConfiguration
used to create this media sourcegetConfiguration
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
public StreamInfo getStreamInfo() throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
StreamInfo
describing the stream this media source producesgetStreamInfo
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
KinesisVideoException
public void initialize(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceSink mediaSourceSink) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
MediaSourceSink
objectinitialize
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
KinesisVideoException
public void configure(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration configuration)
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
configure
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
public void start() throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
start
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
KinesisVideoException
public void stop() throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
stop
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
KinesisVideoException
public boolean isStopped()
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
isStopped
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
public void free() throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
free
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
KinesisVideoException
public StreamCallbacks getStreamCallbacks()
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
StreamCallbacks
implementation if any.getStreamCallbacks
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
public com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceSink getMediaSourceSink()
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
MediaSourceSink
objectgetMediaSourceSink
in interface com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.