public final class KinesisVideoAndroidServiceClient
extends java.lang.Object
implements com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
Constructor and Description |
---|
KinesisVideoAndroidServiceClient(Log log) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createStream(java.lang.String streamName,
java.lang.String deviceName,
java.lang.String contentType,
java.lang.String kmsKeyId,
long retentionPeriodInHours,
long timeoutInMillis,
KinesisVideoCredentialsProvider credentialsProvider)
Create a stream on KinesisVideo frontend
|
void |
deleteStream(java.lang.String streamName,
java.lang.String version,
java.util.Date creationTime,
long timeoutInMillis,
KinesisVideoCredentialsProvider credentialsProvider)
Delete stream with name and version
|
StreamDescription |
describeStream(java.lang.String streamName,
long timeoutInMillis,
KinesisVideoCredentialsProvider credentialsProvider)
Describe the status of a stream
|
static AWSKinesisVideo |
getAwsKinesisVideoClient(AWSCredentialsProvider credentialsProvider,
Region region,
java.lang.String endpoint,
int timeoutInMillis) |
java.lang.String |
getDataEndpoint(java.lang.String streamName,
java.lang.String apiName,
long timeoutInMillis,
KinesisVideoCredentialsProvider credentialsProvider)
Get data endpoint to be used by PutMedia for the specified stream.
|
void |
initialize(KinesisVideoClientConfiguration kinesisVideoClientConfiguration)
Initialize with the network configuration.
|
void |
putMedia(java.lang.String streamName,
java.lang.String containerType,
long streamStartTimeInMillis,
boolean absoluteFragmentTimes,
boolean ackRequired,
java.lang.String dataEndpoint,
long timeoutInMillis,
KinesisVideoCredentialsProvider credentialsProvider,
java.io.InputStream dataInputStream,
Consumer<java.io.InputStream> acksConsumer,
Consumer<java.lang.Exception> completionCallback)
Puts media as a long-running operation.
|
void |
tagStream(java.lang.String streamArn,
java.util.Map<java.lang.String,java.lang.String> tags,
long timeoutInMillis,
KinesisVideoCredentialsProvider credentialsProvider)
Tag a stream of a specified ARN with a list of tags.
|
public KinesisVideoAndroidServiceClient(Log log)
public static AWSKinesisVideo getAwsKinesisVideoClient(AWSCredentialsProvider credentialsProvider, Region region, java.lang.String endpoint, int timeoutInMillis) throws KinesisVideoException
KinesisVideoException
public void initialize(KinesisVideoClientConfiguration kinesisVideoClientConfiguration) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
initialize
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
kinesisVideoClientConfiguration
- - Client configuration to initialize withKinesisVideoException
public java.lang.String createStream(java.lang.String streamName, java.lang.String deviceName, java.lang.String contentType, java.lang.String kmsKeyId, long retentionPeriodInHours, long timeoutInMillis, KinesisVideoCredentialsProvider credentialsProvider) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
createStream
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
streamName
- - Name of stream to createdeviceName
- - Device name of stream to createcontentType
- - Content type of stream to createkmsKeyId
- - KMS Key IdretentionPeriodInHours
- - Stream retention period in hourstimeoutInMillis
- - Timeout in millisecondscredentialsProvider
- - Credentials to useKinesisVideoException
public StreamDescription describeStream(java.lang.String streamName, long timeoutInMillis, KinesisVideoCredentialsProvider credentialsProvider) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
describeStream
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
streamName
- - Name of stream to describetimeoutInMillis
- - Timeout in millisecondscredentialsProvider
- - Credentials to useKinesisVideoException
public void deleteStream(java.lang.String streamName, java.lang.String version, java.util.Date creationTime, long timeoutInMillis, KinesisVideoCredentialsProvider credentialsProvider) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
deleteStream
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
streamName
- - Name of stream to deleteversion
- - Version of stream to deletecreationTime
- - Creation time of stream to deletetimeoutInMillis
- - Timeout in millisecondscredentialsProvider
- - Credentials to useKinesisVideoException
public void tagStream(java.lang.String streamArn, java.util.Map<java.lang.String,java.lang.String> tags, long timeoutInMillis, KinesisVideoCredentialsProvider credentialsProvider) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
tagStream
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
streamArn
- - ARN of the stream to be taggedtags
- - Map of key-value pairtimeoutInMillis
- - Timeout in millisecondscredentialsProvider
- - Credentials to useKinesisVideoException
public java.lang.String getDataEndpoint(java.lang.String streamName, java.lang.String apiName, long timeoutInMillis, KinesisVideoCredentialsProvider credentialsProvider) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
getDataEndpoint
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
streamName
- - Name of the streamapiName
- - Api name to calltimeoutInMillis
- - Timeout in millisecondscredentialsProvider
- - Credentials to useKinesisVideoException
public void putMedia(java.lang.String streamName, java.lang.String containerType, long streamStartTimeInMillis, boolean absoluteFragmentTimes, boolean ackRequired, java.lang.String dataEndpoint, long timeoutInMillis, KinesisVideoCredentialsProvider credentialsProvider, java.io.InputStream dataInputStream, Consumer<java.io.InputStream> acksConsumer, Consumer<java.lang.Exception> completionCallback) throws KinesisVideoException
com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
NOTE: The call will be 'prompt' and will return the IO streams which will be used for the actual streaming.
putMedia
in interface com.amazonaws.kinesisvideo.internal.producer.client.KinesisVideoServiceClient
streamName
- - Name of the streamcontainerType
- - Container typestreamStartTimeInMillis
- - Stream start timeabsoluteFragmentTimes
- - Whether to use absolute fragment timesackRequired
- - Whether acks are requireddataEndpoint
- - The data endpoint to usetimeoutInMillis
- - Timeout in millisecondscredentialsProvider
- - Credentials to usedataInputStream
- - Data InputStream
acksConsumer
- - Consumer of the ACK input streamcompletionCallback
- - Consumer of an Exception for reporting stream terminationKinesisVideoException
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.