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;
}
Aggregations