public interface KinesisVideoClient
Modifier and Type | Method and Description |
---|---|
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource |
createMediaSource(java.lang.String streamName,
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration mediaSourceConfiguration)
Try create a media source.
|
void |
free()
Stops the media sources and frees/releases the underlying objects
|
void |
initialize(DeviceInfo deviceInfo)
Initializes the client object.
|
boolean |
isInitialized()
Returns whether the client has been initialized
|
java.util.List<com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration.Builder<? extends com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration>> |
listSupportedConfigurations()
List few known media sources available to the application.
|
void |
registerMediaSource(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource mediaSource)
Register a media source.
|
void |
startAllMediaSources()
Start all registered media sources
|
void |
stopAllMediaSources()
Stop all registered media sources
|
void |
unregisterMediaSource(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource mediaSource)
Un-Register a media source.
|
boolean isInitialized()
void initialize(DeviceInfo deviceInfo) throws KinesisVideoException
KinesisVideoException
java.util.List<com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration.Builder<? extends com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration>> listSupportedConfigurations()
void registerMediaSource(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource mediaSource) throws KinesisVideoException
mediaSource
- media source binding to kinesis video producer streamKinesisVideoException
void unregisterMediaSource(com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource mediaSource) throws KinesisVideoException
mediaSource
- media source to stop binding to kinesis video producer streamKinesisVideoException
void startAllMediaSources() throws KinesisVideoException
KinesisVideoException
void stopAllMediaSources() throws KinesisVideoException
KinesisVideoException
com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSource createMediaSource(java.lang.String streamName, com.amazonaws.kinesisvideo.internal.client.mediasource.MediaSourceConfiguration mediaSourceConfiguration) throws KinesisVideoException
mediaSourceConfiguration,
- configuration to create specific media sourceUnsupportedConfigurationException
- is thrown when the configuration is not supported,
e.g. camera resolution or encodingUnknownMediaSourceException
- is thrown when the media source type is unknown and
cannot be createdKinesisVideoException
void free() throws KinesisVideoException
KinesisVideoException
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.