Search in sources :

Example 1 with KinesisVideoAndroidServiceClient

use of com.amazonaws.mobileconnectors.kinesisvideo.service.KinesisVideoAndroidServiceClient in project aws-sdk-android by aws-amplify.

the class KinesisVideoAndroidClientFactory method createKinesisVideoClient.

/**
 * Create KinesisVideo client.
 */
public static KinesisVideoClient createKinesisVideoClient(@NonNull final Context context, @NonNull final KinesisVideoClientConfiguration configuration, @NonNull final DeviceInfo deviceInfo, @NonNull final Log log, @NonNull final ScheduledExecutorService executor) throws KinesisVideoException {
    if (KINESIS_VIDEO_CLIENT_INSTANCE == null) {
        final KinesisVideoAndroidServiceClient serviceClient = new KinesisVideoAndroidServiceClient(log);
        final KinesisVideoClient kinesisVideoClient = new AndroidKinesisVideoClient(log, context, configuration, serviceClient, executor);
        kinesisVideoClient.initialize(deviceInfo);
        KINESIS_VIDEO_CLIENT_INSTANCE = kinesisVideoClient;
    }
    return KINESIS_VIDEO_CLIENT_INSTANCE;
}
Also used : KinesisVideoAndroidServiceClient(com.amazonaws.mobileconnectors.kinesisvideo.service.KinesisVideoAndroidServiceClient) KinesisVideoClient(com.amazonaws.kinesisvideo.client.KinesisVideoClient)

Aggregations

KinesisVideoClient (com.amazonaws.kinesisvideo.client.KinesisVideoClient)1 KinesisVideoAndroidServiceClient (com.amazonaws.mobileconnectors.kinesisvideo.service.KinesisVideoAndroidServiceClient)1