Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Download and configure the Java producer library code

Focus mode
Download and configure the Java producer library code - Amazon Kinesis Video Streams

In this section of the Java producer library procedure, you download the Java example code, import the project into your Java IDE, and configure the library locations.

For prerequisites and other details about this example, see Using the Java producer library.

  1. Create a directory, and then clone the example source code from the GitHub repository.

    git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-java
  2. Open the Java integrated development environment (IDE) that you use (for example, Eclipse or JetBrains IntelliJ IDEA), and import the Apache Maven project that you downloaded:

    • In IntelliJ IDEA: Choose Import. Navigate to the pom.xml file in the root of the downloaded package.

    • In Eclipse: Choose File, Import, Maven, Existing Maven Projects. Then navigate to the kinesis-video-java-demo directory.

    For more information, see the documentation for your IDE.

  3. The Java example code uses the current AWS credentials. To use a different credentials profile, locate the following code in DemoAppMain.java:

    final KinesisVideoClient kinesisVideoClient = KinesisVideoJavaClientFactory .createKinesisVideoClient( Regions.US_WEST_2, AuthHelper.getSystemPropertiesCredentialsProvider());

    Change the code to the following:

    final KinesisVideoClient kinesisVideoClient = KinesisVideoJavaClientFactory .createKinesisVideoClient( Regions.US_WEST_2, new ProfileCredentialsProvider("credentials-profile-name"));

    For more information, see ProfileCredentialsProvider in the AWS SDK for Java reference.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.